Skip to content

Commit

Permalink
add trigonometric functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Smit-create committed Mar 19, 2022
1 parent ec19312 commit 3a23adf
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions src/runtime/cmath.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,51 @@ def _lfortran_zsqrt(x: c64) -> c64:

def sqrt(x: c64) -> c64:
return _lfortran_zsqrt(x)


@ccall
def _lfortran_zacos(x: c64) -> c64:
pass

def acos(x: c64) -> c64:
return _lfortran_zacos(x)


@ccall
def _lfortran_zasin(x: c64) -> c64:
pass

def asin(x: c64) -> c64:
return _lfortran_zasin(x)


@ccall
def _lfortran_zatan(x: c64) -> c64:
pass

def atan(x: c64) -> c64:
return _lfortran_zatan(x)


@ccall
def _lfortran_zcos(x: c64) -> c64:
pass

def cos(x: c64) -> c64:
return _lfortran_zcos(x)


@ccall
def _lfortran_zsin(x: c64) -> c64:
pass

def sin(x: c64) -> c64:
return _lfortran_zsin(x)


@ccall
def _lfortran_ztan(x: c64) -> c64:
pass

def tan(x: c64) -> c64:
return _lfortran_ztan(x)

0 comments on commit 3a23adf

Please sign in to comment.