well frst of all I have one big project from mechanical engineering rolling at the moment. I need to construct and calculate whole crane construction and I am looking for help because I'm new in python.
It will be over 100 pages of calculations and equations that I'm programmed this way to give me final result and save latex ready code:
import math
from sympy import *
from sympy.solvers import solve
from sympy.physics.units import *
etau, ik, eta0 = symbols ("eta_u i_k eta_0")
eq1 = Eq(etau, (1/ik)*((1-eta0**ik)/(1-eta0)))
etau_result=eq1.rhs.evalf(subs={ik:3, eta0:98e-2})
eq1_R=solve(eq1)[0]
text_file = open("Output.txt", "w")
text_file.write("Stupanj djelovanja faktorskih koloturnika racuna se prema
formuli:\n \n"+"\\begin{equation} \n"+latex(eq1)+"=%s"%`
(etau_result)+"\n"+"\\end{equation}" \
"\ngdje je: \n \n "\
+latex(ik)+"=u="+str(ik)+" -prijenosni omjer koloturnika\n"\
+latex(eta0)+" -Iskoristivost jedne uznice smjestene na valjnom lezaju\n\n"
)
Ok please just ignore that strange language it's Croatian so I don't have time to translate that :)
Right now I have a ton of the same code which I need to write for every damn equation and downthere I need to make description that convert equations in latex form + give some words about exact equations.
I know that is impossible to automate part with description, but I want to automate part with equation because I need to write for every equation same code from line 5 to line 18 and thats pain in the a.... and takes too much time.
I hope that we will find some interesting solution.