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

@BoxBIF @BoxMember(type=NUMERIC, name="Sin") public class Sin extends BIF
  • Constructor Details

    • Sin

      public Sin()
      Constructor
  • Method Details

    • _invoke

      public Number _invoke(IBoxContext context, ArgumentsScope arguments)
      Returns the sine of 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
    • sin

      public static BigDecimal sin(BigDecimal x, MathContext mc)
      Returns the sine of a big decimal I tried and tried, but couldn't get any of the algorithms to work for bigdecimal] so I gave up and just used the double value for now
      Parameters:
      x - The big decimal to calculate the sine of
      mc - The math context to use
      Returns:
      The sine of the big decimal
    • _invoke

      public static Number _invoke(Number value)