Advanced Example
This example demonstrates how to use the fancy_calcy package for scientific calculations.
Please see the details below:
Various mathematical operations are performed using the fancy_calcy package.
1# this is just a simple example of how to use the library
2
3from fancy_calcy.advanced import ScientificFunctions
4
5
6sf = ScientificFunctions()
7
8print(sf.factorial(5))
9
10print(sf.power(2, 3))
11
12print(sf.logarithm(10, 100))
13
14print(sf.sine(45))
15
16print(sf.cosine(60))
17
18print(sf.tangent(30))
19
20print(sf.add_complex(2+3j, 4+5j))
21
22print(sf.subtract_complex(4+5j, 2+3j))