Python | sympy.sin() method
In simpy, sin() method is sine function. Using the sin(x) method in simpy module, we can compute the sine of x.
Syntax : sympy.sin(x) Return : Returns the sine of x
Code #1:
Below is the example using sin() method to find sine function.
# importing sympy library from sympy import * # calling sin() method on expression geek1 = sin(-1) geek2 = sin(pi / 3) print(geek1) print(geek2) |
chevron_right
filter_none
Output:
-sin(1) sqrt(3)/2
Code #2:
# importing sympy library from sympy import * # calling sin() method on expression geek = sin(2 + 5j) print(geek) |
chevron_right
filter_none
Output:
67.4789152384559 - 30.8794313435882*I
Recommended Posts:
- class method vs static method in Python
- Python | os.dup() method
- Python | next() method
- Python | set() method
- Python | os.lchown() method
- Python | cmath.log() method
- Python PIL | ImageOps.fit() method
- Python | sympy.Pow() method
- Python | os.lseek() method
- Python | isinstance() method
- Python | os.unlink() method
- Python | sympy.Mul() method
- Python | os.times() method
- Python | Tensorflow tan() method
- Python PIL | UnsahrpMask() method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


