How to use the pyccel.ast.mathext.MathFunctionFloat function in pyccel

To help you get started, we’ve selected a few pyccel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pyccel / pyccel / pyccel / ast / mathext.py View on Github external
# Functions that return one value
#==============================================================================

# Floating-point result
class MathAcos    (MathFunctionFloat): pass
class MathAcosh   (MathFunctionFloat): pass
class MathAsin    (MathFunctionFloat): pass
class MathAsinh   (MathFunctionFloat): pass
class MathAtan    (MathFunctionFloat): pass
class MathAtan2   (MathFunctionFloat): pass
class MathAtanh   (MathFunctionFloat): pass
class MathCopysign(MathFunctionFloat): pass
class MathCos     (MathFunctionFloat): pass
class MathCosh    (MathFunctionFloat): pass
class MathDegrees (MathFunctionFloat): pass
class MathErf     (MathFunctionFloat): pass
class MathErfc    (MathFunctionFloat): pass
class MathExp     (MathFunctionFloat): pass
class MathExpm1   (MathFunctionFloat): pass
class MathFabs    (MathFunctionFloat): pass
class MathFmod    (MathFunctionFloat): pass
class MathFsum    (MathFunctionFloat): pass
class MathGamma   (MathFunctionFloat): pass
class MathHypot   (MathFunctionFloat): pass
class MathLdexp   (MathFunctionFloat): pass
class MathLgamma  (MathFunctionFloat): pass
class MathLog     (MathFunctionFloat): pass
class MathLog10   (MathFunctionFloat): pass
class MathLog1p   (MathFunctionFloat): pass
class MathLog2    (MathFunctionFloat): pass
class MathPow     (MathFunctionFloat): pass
class MathRadians (MathFunctionFloat): pass
github pyccel / pyccel / pyccel / ast / mathext.py View on Github external
class MathFmod    (MathFunctionFloat): pass
class MathFsum    (MathFunctionFloat): pass
class MathGamma   (MathFunctionFloat): pass
class MathHypot   (MathFunctionFloat): pass
class MathLdexp   (MathFunctionFloat): pass
class MathLgamma  (MathFunctionFloat): pass
class MathLog     (MathFunctionFloat): pass
class MathLog10   (MathFunctionFloat): pass
class MathLog1p   (MathFunctionFloat): pass
class MathLog2    (MathFunctionFloat): pass
class MathPow     (MathFunctionFloat): pass
class MathRadians (MathFunctionFloat): pass
class MathSin     (MathFunctionFloat): pass
class MathSinh    (MathFunctionFloat): pass
class MathSqrt    (MathFunctionFloat): pass
class MathTan     (MathFunctionFloat): pass
class MathTanh    (MathFunctionFloat): pass

# Integer result
class MathCeil     (MathFunctionInt): pass
class MathFactorial(MathFunctionInt): pass
class MathFloor    (MathFunctionInt): pass
class MathGcd      (MathFunctionInt): pass
class MathTrunc    (MathFunctionInt): pass

# Boolean result
class MathIsclose (MathFunctionBool): pass
class MathIsfinite(MathFunctionBool): pass
class MathIsinf   (MathFunctionBool): pass
class MathIsnan   (MathFunctionBool): pass

#==============================================================================
github pyccel / pyccel / pyccel / ast / mathext.py View on Github external
class MathAsin    (MathFunctionFloat): pass
class MathAsinh   (MathFunctionFloat): pass
class MathAtan    (MathFunctionFloat): pass
class MathAtan2   (MathFunctionFloat): pass
class MathAtanh   (MathFunctionFloat): pass
class MathCopysign(MathFunctionFloat): pass
class MathCos     (MathFunctionFloat): pass
class MathCosh    (MathFunctionFloat): pass
class MathDegrees (MathFunctionFloat): pass
class MathErf     (MathFunctionFloat): pass
class MathErfc    (MathFunctionFloat): pass
class MathExp     (MathFunctionFloat): pass
class MathExpm1   (MathFunctionFloat): pass
class MathFabs    (MathFunctionFloat): pass
class MathFmod    (MathFunctionFloat): pass
class MathFsum    (MathFunctionFloat): pass
class MathGamma   (MathFunctionFloat): pass
class MathHypot   (MathFunctionFloat): pass
class MathLdexp   (MathFunctionFloat): pass
class MathLgamma  (MathFunctionFloat): pass
class MathLog     (MathFunctionFloat): pass
class MathLog10   (MathFunctionFloat): pass
class MathLog1p   (MathFunctionFloat): pass
class MathLog2    (MathFunctionFloat): pass
class MathPow     (MathFunctionFloat): pass
class MathRadians (MathFunctionFloat): pass
class MathSin     (MathFunctionFloat): pass
class MathSinh    (MathFunctionFloat): pass
class MathSqrt    (MathFunctionFloat): pass
class MathTan     (MathFunctionFloat): pass
class MathTanh    (MathFunctionFloat): pass
github pyccel / pyccel / pyccel / ast / mathext.py View on Github external
class MathErf     (MathFunctionFloat): pass
class MathErfc    (MathFunctionFloat): pass
class MathExp     (MathFunctionFloat): pass
class MathExpm1   (MathFunctionFloat): pass
class MathFabs    (MathFunctionFloat): pass
class MathFmod    (MathFunctionFloat): pass
class MathFsum    (MathFunctionFloat): pass
class MathGamma   (MathFunctionFloat): pass
class MathHypot   (MathFunctionFloat): pass
class MathLdexp   (MathFunctionFloat): pass
class MathLgamma  (MathFunctionFloat): pass
class MathLog     (MathFunctionFloat): pass
class MathLog10   (MathFunctionFloat): pass
class MathLog1p   (MathFunctionFloat): pass
class MathLog2    (MathFunctionFloat): pass
class MathPow     (MathFunctionFloat): pass
class MathRadians (MathFunctionFloat): pass
class MathSin     (MathFunctionFloat): pass
class MathSinh    (MathFunctionFloat): pass
class MathSqrt    (MathFunctionFloat): pass
class MathTan     (MathFunctionFloat): pass
class MathTanh    (MathFunctionFloat): pass

# Integer result
class MathCeil     (MathFunctionInt): pass
class MathFactorial(MathFunctionInt): pass
class MathFloor    (MathFunctionInt): pass
class MathGcd      (MathFunctionInt): pass
class MathTrunc    (MathFunctionInt): pass

# Boolean result
class MathIsclose (MathFunctionBool): pass
github pyccel / pyccel / pyccel / ast / mathext.py View on Github external
class MathFunctionInt(MathFunctionBase):
    _dtype = NativeInteger()
    _precision = default_precision['integer']

class MathFunctionBool(MathFunctionBase):
    _dtype = NativeBool()
    _precision = default_precision['bool']

#==============================================================================
# Functions that return one value
#==============================================================================

# Floating-point result
class MathAcos    (MathFunctionFloat): pass
class MathAcosh   (MathFunctionFloat): pass
class MathAsin    (MathFunctionFloat): pass
class MathAsinh   (MathFunctionFloat): pass
class MathAtan    (MathFunctionFloat): pass
class MathAtan2   (MathFunctionFloat): pass
class MathAtanh   (MathFunctionFloat): pass
class MathCopysign(MathFunctionFloat): pass
class MathCos     (MathFunctionFloat): pass
class MathCosh    (MathFunctionFloat): pass
class MathDegrees (MathFunctionFloat): pass
class MathErf     (MathFunctionFloat): pass
class MathErfc    (MathFunctionFloat): pass
class MathExp     (MathFunctionFloat): pass
class MathExpm1   (MathFunctionFloat): pass
class MathFabs    (MathFunctionFloat): pass
class MathFmod    (MathFunctionFloat): pass
class MathFsum    (MathFunctionFloat): pass
class MathGamma   (MathFunctionFloat): pass
github pyccel / pyccel / pyccel / ast / mathext.py View on Github external
class MathFsum    (MathFunctionFloat): pass
class MathGamma   (MathFunctionFloat): pass
class MathHypot   (MathFunctionFloat): pass
class MathLdexp   (MathFunctionFloat): pass
class MathLgamma  (MathFunctionFloat): pass
class MathLog     (MathFunctionFloat): pass
class MathLog10   (MathFunctionFloat): pass
class MathLog1p   (MathFunctionFloat): pass
class MathLog2    (MathFunctionFloat): pass
class MathPow     (MathFunctionFloat): pass
class MathRadians (MathFunctionFloat): pass
class MathSin     (MathFunctionFloat): pass
class MathSinh    (MathFunctionFloat): pass
class MathSqrt    (MathFunctionFloat): pass
class MathTan     (MathFunctionFloat): pass
class MathTanh    (MathFunctionFloat): pass

# Integer result
class MathCeil     (MathFunctionInt): pass
class MathFactorial(MathFunctionInt): pass
class MathFloor    (MathFunctionInt): pass
class MathGcd      (MathFunctionInt): pass
class MathTrunc    (MathFunctionInt): pass

# Boolean result
class MathIsclose (MathFunctionBool): pass
class MathIsfinite(MathFunctionBool): pass
class MathIsinf   (MathFunctionBool): pass
class MathIsnan   (MathFunctionBool): pass

#==============================================================================
# Functions that return two values
github pyccel / pyccel / pyccel / ast / mathext.py View on Github external
#==============================================================================
# Functions that return one value
#==============================================================================

# Floating-point result
class MathAcos    (MathFunctionFloat): pass
class MathAcosh   (MathFunctionFloat): pass
class MathAsin    (MathFunctionFloat): pass
class MathAsinh   (MathFunctionFloat): pass
class MathAtan    (MathFunctionFloat): pass
class MathAtan2   (MathFunctionFloat): pass
class MathAtanh   (MathFunctionFloat): pass
class MathCopysign(MathFunctionFloat): pass
class MathCos     (MathFunctionFloat): pass
class MathCosh    (MathFunctionFloat): pass
class MathDegrees (MathFunctionFloat): pass
class MathErf     (MathFunctionFloat): pass
class MathErfc    (MathFunctionFloat): pass
class MathExp     (MathFunctionFloat): pass
class MathExpm1   (MathFunctionFloat): pass
class MathFabs    (MathFunctionFloat): pass
class MathFmod    (MathFunctionFloat): pass
class MathFsum    (MathFunctionFloat): pass
class MathGamma   (MathFunctionFloat): pass
class MathHypot   (MathFunctionFloat): pass
class MathLdexp   (MathFunctionFloat): pass
class MathLgamma  (MathFunctionFloat): pass
class MathLog     (MathFunctionFloat): pass
class MathLog10   (MathFunctionFloat): pass
class MathLog1p   (MathFunctionFloat): pass
class MathLog2    (MathFunctionFloat): pass
github pyccel / pyccel / pyccel / ast / mathext.py View on Github external
class MathAtanh   (MathFunctionFloat): pass
class MathCopysign(MathFunctionFloat): pass
class MathCos     (MathFunctionFloat): pass
class MathCosh    (MathFunctionFloat): pass
class MathDegrees (MathFunctionFloat): pass
class MathErf     (MathFunctionFloat): pass
class MathErfc    (MathFunctionFloat): pass
class MathExp     (MathFunctionFloat): pass
class MathExpm1   (MathFunctionFloat): pass
class MathFabs    (MathFunctionFloat): pass
class MathFmod    (MathFunctionFloat): pass
class MathFsum    (MathFunctionFloat): pass
class MathGamma   (MathFunctionFloat): pass
class MathHypot   (MathFunctionFloat): pass
class MathLdexp   (MathFunctionFloat): pass
class MathLgamma  (MathFunctionFloat): pass
class MathLog     (MathFunctionFloat): pass
class MathLog10   (MathFunctionFloat): pass
class MathLog1p   (MathFunctionFloat): pass
class MathLog2    (MathFunctionFloat): pass
class MathPow     (MathFunctionFloat): pass
class MathRadians (MathFunctionFloat): pass
class MathSin     (MathFunctionFloat): pass
class MathSinh    (MathFunctionFloat): pass
class MathSqrt    (MathFunctionFloat): pass
class MathTan     (MathFunctionFloat): pass
class MathTanh    (MathFunctionFloat): pass

# Integer result
class MathCeil     (MathFunctionInt): pass
class MathFactorial(MathFunctionInt): pass
class MathFloor    (MathFunctionInt): pass
github pyccel / pyccel / pyccel / ast / mathext.py View on Github external
class MathDegrees (MathFunctionFloat): pass
class MathErf     (MathFunctionFloat): pass
class MathErfc    (MathFunctionFloat): pass
class MathExp     (MathFunctionFloat): pass
class MathExpm1   (MathFunctionFloat): pass
class MathFabs    (MathFunctionFloat): pass
class MathFmod    (MathFunctionFloat): pass
class MathFsum    (MathFunctionFloat): pass
class MathGamma   (MathFunctionFloat): pass
class MathHypot   (MathFunctionFloat): pass
class MathLdexp   (MathFunctionFloat): pass
class MathLgamma  (MathFunctionFloat): pass
class MathLog     (MathFunctionFloat): pass
class MathLog10   (MathFunctionFloat): pass
class MathLog1p   (MathFunctionFloat): pass
class MathLog2    (MathFunctionFloat): pass
class MathPow     (MathFunctionFloat): pass
class MathRadians (MathFunctionFloat): pass
class MathSin     (MathFunctionFloat): pass
class MathSinh    (MathFunctionFloat): pass
class MathSqrt    (MathFunctionFloat): pass
class MathTan     (MathFunctionFloat): pass
class MathTanh    (MathFunctionFloat): pass

# Integer result
class MathCeil     (MathFunctionInt): pass
class MathFactorial(MathFunctionInt): pass
class MathFloor    (MathFunctionInt): pass
class MathGcd      (MathFunctionInt): pass
class MathTrunc    (MathFunctionInt): pass

# Boolean result
github pyccel / pyccel / pyccel / ast / mathext.py View on Github external
_dtype = NativeInteger()
    _precision = default_precision['integer']

class MathFunctionBool(MathFunctionBase):
    _dtype = NativeBool()
    _precision = default_precision['bool']

#==============================================================================
# Functions that return one value
#==============================================================================

# Floating-point result
class MathAcos    (MathFunctionFloat): pass
class MathAcosh   (MathFunctionFloat): pass
class MathAsin    (MathFunctionFloat): pass
class MathAsinh   (MathFunctionFloat): pass
class MathAtan    (MathFunctionFloat): pass
class MathAtan2   (MathFunctionFloat): pass
class MathAtanh   (MathFunctionFloat): pass
class MathCopysign(MathFunctionFloat): pass
class MathCos     (MathFunctionFloat): pass
class MathCosh    (MathFunctionFloat): pass
class MathDegrees (MathFunctionFloat): pass
class MathErf     (MathFunctionFloat): pass
class MathErfc    (MathFunctionFloat): pass
class MathExp     (MathFunctionFloat): pass
class MathExpm1   (MathFunctionFloat): pass
class MathFabs    (MathFunctionFloat): pass
class MathFmod    (MathFunctionFloat): pass
class MathFsum    (MathFunctionFloat): pass
class MathGamma   (MathFunctionFloat): pass
class MathHypot   (MathFunctionFloat): pass