What is the python code to solve this type of equation in jupitor notebook
11.1cos(x)+44.9sin(x)-1.827=0
Please show the code clearly.
# In[1]:
#import sympy library
from sympy import *
# In[2]:
#declare x as variable
x = Symbol('x')
#define a equation
eqn = 11.1*cos(x) + 44.9*sin(x) - 1.827
#sol for x
sol = solve(eqn, x)
# In[7]:
#print the solution
print(sol)
# In[ ]:
If you have any problem then let me know in the comment box and if you like then please rate or give a big thumbs thank you.
Get Answers For Free
Most questions answered within 1 hours.