java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.math.Exp

@BoxBIF @BoxMember(type=NUMERIC) public class Exp extends BIF
  • Constructor Details

    • Exp

      public Exp()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Calculates the exponent whose base is e that represents a number.
      Specified by:
      _invoke in class BIF
      Parameters:
      context - The context in which the BIF is being invoked.
      arguments - Argument scope for the BIF.
      Returns:
      The result of the invocation
    • exp

      public static BigDecimal exp(BigDecimal x, MathContext mc)
      Calculates the exponent of a BigDecimal using Taylor series expansion.
      Parameters:
      x - The BigDecimal value to calculate the exponent for.
      mc - The MathContext to control the precision.
      Returns:
      The exponent of the BigDecimal.
    • _invoke

      public static Number _invoke(Number num)