mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
Fixed the formula error
This commit is contained in:
parent
ca086f9732
commit
cdc3247bf8
@ -131,7 +131,7 @@ def asin(z: complex):
|
||||
return -1j * log(1j * z + sqrt(1 - z * z))
|
||||
|
||||
def atan(z: complex):
|
||||
return 1j / 2 * log((1 - 1j * z) / (1 + 1j * z))
|
||||
return 1j / 2 * log((1 - 1j * z) / (1 + 1j * z)) # type: ignore
|
||||
|
||||
def cos(z: complex):
|
||||
return (exp(z) + exp(-z)) / 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user