MathFunction.NaturalLog Class
Natural logarithm.
Constructor
Item Index
Methods
_printArg
(
String
protected
-
index
Print an argument, with parentheses if necessary.
Parameters:
-
indexNumber | MathFunctionargument index or MathFunction
Returns:
String:
the string representation of the argument
evaluate
(
-
var_list
Parameters:
-
var_listObjectmap of variable names to values or MathFunctions
Returns:
the value of the function
evaluateArgs
(
protected
-
var_list
Parameters:
-
var_listObjectmap of variable names to values or MathFunctions
Returns:
list of argument values, from calling evaluate()
getArgCount
()
Int
Returns:
Int:
number of arguments
parenthesizeForPrint
(
Boolean
protected
-
f
Parameters:
Returns:
Boolean:
true if f needs to parenthesize us
parenthesizeForRender
(
Boolean
protected
-
f
Parameters:
Returns:
Boolean:
true if f needs to parenthesize us
prepareToRender
(
Int
-
canvas -
top_left -
font_size -
rect_list
Parameters:
-
canvasMathCanvasthe drawing canvas
-
top_leftPointx,y coordinates of the top left of the bounding box
-
font_sizeFloatpercentage of the base font size
-
rect_listRectListlayout information
Returns:
Int:
index of this items info in rect_list
render
(
-
canvas -
rect_list
Parameters:
-
canvasMathCanvasthe drawing canvas
-
rect_listRectListlayout information
replaceArg
(
-
origArg -
newArg
If origArg is an argument, replaces origArg with newArg.
Parameters:
-
origArgMathFunctionoriginal argument
-
newArgMathFunctionnew argument
toString
()
Returns:
text representation of the function
