MathFunction.Arctangent2 Class
Inverse trigonometric cosine.
Constructor
Item Index
Methods
_printArg
(
String
protected
-
index
Print an argument, with parentheses if necessary.
Parameters:
-
index
Number | MathFunctionargument index or MathFunction
Returns:
String:
the string representation of the argument
evaluate
(
-
var_list
Parameters:
-
var_list
Objectmap of variable names to values or MathFunctions
Returns:
the value of the function
evaluateArgs
(
protected
-
var_list
Parameters:
-
var_list
Objectmap of variable names to values or MathFunctions
Returns:
list of argument values, from calling evaluate()
getArgCount
()
Int
Returns:
Int:
number of arguments
getArgs
()
Array
Returns:
Array:
array of arguments
getMaxArgCount
()
Int
By default, we assume the number of arguments is fixed. Derived
classes can override.
Returns:
Int:
maximum number of arguments
handleKeyPress
(
-
canvas
-
code
-
c
Overridden by Input.
Parameters:
-
canvas
MathCanvas -
code
Intcharacter code -
c
Stringcharacter
Returns:
true if function changed
layout
(
Int
-
context
-
top_left
-
font_size
-
rect_list
Parameters:
-
context
Objectthe drawing context -
top_left
Pointx,y coordinates of the top left of the bounding box -
font_size
Floatpercentage of the base font size -
rect_list
RectListlayout information
Returns:
Int:
index of this items info in rect_list
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
render
(
-
context
-
rect_list
Parameters:
-
context
Objectthe drawing context -
rect_list
RectListlayout information
replaceArg
(
-
origArg
-
newArg
If origArg is an argument, replaces origArg with newArg.
Parameters:
-
origArg
MathFunctionoriginal argument -
newArg
MathFunctionnew argument
toString
()
Returns:
text representation of the function