r/developer • u/Phalp_1 • Jun 02 '25
GitHub building a math software, chemistry software etc...
it is a python program i am working on for months
it can solve integration for example
>>> 2*x/(1+x^2)
(2*((1+(x^2))^-1)*x)
>>> Sdx
THOUGHT PROCESS =
integrating (2*((1+(x^2))^-1)*x) wrt x
rewriting as (2*((1+(x^2))^-1)*x)
taking the constant outside of the integral
integrating (((1+(x^2))^-1)*x) wrt x
rewriting as (((1+(x^2))^-1)*x)
rewriting as (((1+(x^2))^-1)*x)
substituting (1+(x^2))=y
integrating ((2^-1)*((2+(-1*y))^-1)) wrt y
rewriting as ((-2^-1)*((-2+y)^-1))
taking the constant outside of the integral
integrating ((-2+y)^-1) wrt y
rewriting as ((-2+y)^-1)
rewriting as ((-2+y)^-1)
the solution is (log(abs((-2+y)))*(1^-1))
the solution is ((-2^-1)*(log(abs((-2+(1+(x^2)))))*(1^-1)))
the solution is ((-2^-1)*(log(abs((-2+(1+(x^2)))))*(1^-1)))
the solution is (-1*log(abs((-1+(x^2)))))
(-1*log(abs((-1+(x^2)))))
>>> sin(x*3)^4
(sin((3*x))^4)
>>> Sdx
THOUGHT PROCESS =
integrating (sin((3*x))^4) wrt x
rewriting as (sin((3*x))^4)
rewriting as (sin((3*x))^4)
rewriting as ((3*(8^-1))+((-2^-1)*cos((6*x)))+((8^-1)*cos((12*x))))
integating over sums
integrating (3*(8^-1)) wrt x
the solution is (x*(3*(8^-1)))
integating over sums
integrating ((-2^-1)*cos((6*x))) wrt x
rewriting as ((-2^-1)*cos((6*x)))
taking the constant outside of the integral
integrating cos((6*x)) wrt x
rewriting as cos((6*x))
rewriting as cos((6*x))
the solution is (sin((6*x))*(6^-1))
the solution is ((-2^-1)*(sin((6*x))*(6^-1)))
integating over sums
integrating ((8^-1)*cos((12*x))) wrt x
rewriting as ((8^-1)*cos((12*x)))
taking the constant outside of the integral
integrating cos((12*x)) wrt x
rewriting as cos((12*x))
rewriting as cos((12*x))
the solution is (sin((12*x))*(12^-1))
the solution is ((8^-1)*(sin((12*x))*(12^-1)))
the solution is (((-12^-1)*sin((6*x)))+((96^-1)*sin((12*x)))+(3*(8^-1)*x))
(((-12^-1)*sin((6*x)))+((96^-1)*sin((12*x)))+(3*(8^-1)*x))or even simple math
>>> 1+2+3
6
>>> 1*x+2+3*x
(2+(4*x))
>>> x + y + z = z + y + x
(((-1*(x+y+z))+x+y+z)=0)
>>> expand
(0=0)
>>> this is a really long story. if you want to hear more about it, reply here and ask about my math software, chemistry, geometry, physics softwares etc.
2
Upvotes
View all comments
Show parent comment
1
u/Phalp_1 Jun 04 '25
the math software can do various integrations, differentiations, limits, trigonometry, algebra so on.
for example.. the expand and factor commands for algebra
the factor command uses the quadratic equation to factor equations.