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 | set() method
- Python | next() method
- Python | os.waitid() method
- Python | shutil.which() method
- Python PIL | getpalette() Method
- Python PIL | getcolors() Method
- Python | os.WIFEXITED() method
- Python | Tensorflow cos() method
- Python | os.major() method
- Python | os.stat() method
- Python | os.minor() method
- Python | os.fstat() method
- Python | os.umask() 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.



