Please is there any way I can use python to solve formal geometry and would be great to see an example.. Thanks | Sololearn: Learn to code for FREE!

+1

Please is there any way I can use python to solve formal geometry and would be great to see an example.. Thanks

Python

2/15/2021 3:03:02 PM

Abdullah

3 Answers

New Answer

+10

Moosa Abdullah , can you gives some examples what you want to achieve? thanks!

+2

Moosa Abdullah from sympy import symbols,solve,Eq x=symbols('x') exp=Eq((x + 2*x + 3*x),180) sol=solve(exp) print(sol[0]) The source which helped to understand how to use sympy , https://www.geeksforgeeks.org/degrees-and-radians-in-python/amp/ though you should use official documentation as a reference .

+1

Something like using the geometry theorem rules to solve a problem with python.. Eg : the angles of a triangle are x, 2x and 3x. Find the value of x in degrees.. Would be great to get the step by step process in python