Skip to content

Commit 68bc8e5

Browse files
committed
2 parents efdfce1 + 9bcb716 commit 68bc8e5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ number = Complex(im=13.2, re=5) # --> Real = 5, Imaginary = 13.2
3535
print(number)
3636
# Instanciation 5
3737
number = Complex(re=3, im=-2.4, restore=False) # restore argument is by default True, whenever an error occurs on operation, the last result will be restored to the object, else if it is False then the object will be simply None.
38+
# Instanciation 6
39+
number = Complex.fromComplex(4 - 3j - 2) # Real = 2, Imaginary = -3
3840
```
3941
### Basic operations
4042
```python
@@ -93,6 +95,15 @@ if(num1 == num2): print('({}) == ({})'.format(num1, num2))
9395
# Not equal
9496
if(num1 != num2): print('({}) != ({})'.format(num1, num2))
9597
```
98+
### Solving linear equation and second degree equation
99+
#### Importing solve function
100+
```python
101+
from cmpx.equations import solve
102+
```
103+
#### Solving equations
104+
```
105+
solutions = solve(-1,2,3) # It will return a tuple of solutions
106+
```
96107

97108
## Contributing
98109
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

0 commit comments

Comments
 (0)