FunctionNode
public class FunctionNode : NSObject, Node
A Node that represents a mathematical function
-
The depth of the deepest children of the
Node
in aTree
Declaration
Swift
public var maxDepth: Int?
-
The depth of the
Node
in aTree
Declaration
Swift
public var depth: Int?
-
Gives String representation of the node
Declaration
Swift
public func toString() -> String
-
Gives Tex (String) representation of the node
Declaration
Swift
public func toTex() -> String
-
The
print()
descriptionDeclaration
Swift
override public var description: String { get }
-
The name of the function (ex:
sqrt
, orfactorial
)Declaration
Swift
public var content: String
-
The name of the node
Declaration
Swift
public var type: String
-
The arguments of the function
Declaration
Swift
public var children: [Node]
-
Create a SymbolNode
Declaration
Swift
public init(_ name: String, args: [Node])
Parameters
double
Floating point number
-
Compiles FunctionNode to simpler node (useless here, but required by protocol)
Declaration
Swift
public func compile() -> Node
-
Converts FunctionNode to BigNumber by exectuing the function defined in
FunctionNode.function
Declaration