Class Sin
java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.math.Sin
-
Field Summary
Fields inherited from class ortus.boxlang.runtime.bifs.BIF
__functionName, __isMemberExecution, asyncService, cacheService, componentService, declaredArguments, functionService, interceptorService, logger, moduleService, runtime, schedulerService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Number
_invoke
(IBoxContext context, ArgumentsScope arguments) Returns the sine of a numberstatic 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 nowMethods inherited from class ortus.boxlang.runtime.bifs.BIF
announce, getDeclaredArguments, invoke
-
Constructor Details
-
Sin
public Sin()Constructor
-
-
Method Details
-
_invoke
Returns the sine of a number -
sin
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 ofmc
- The math context to use- Returns:
- The sine of the big decimal
-
_invoke
-