Perseus
Preparing search index...
@khanacademy/kas
Const
Class Const
Hierarchy (
View Summary
)
Sym
Const
Index
Constructors
constructor
Properties
func
hints
symbol
e
pi
Methods
abs
add
Hint
args
as
Mul
as
Positive
Factor
as
Tex
codegen
collect
compare
compile
complete
Parse
construct
equals
eval
expand
expr
Args
factor
find
GCD
get
Consts
get
Denominator
get
Units
get
Vars
has
is
is
Divide
is
Negative
is
Positive
is
Root
is
Simplified
is
Subtract
name
needs
Explicit
Mul
negate
normalize
partial
Eval
print
raise
To
The
recurse
repr
same
Form
simplify
strip
tex
Constructors
constructor
new
Const
(
symbol
:
string
)
:
Const
Parameters
symbol
:
string
Returns
Const
Properties
func
func
:
typeof
Const
= Const
hints
hints
:
Hints
symbol
symbol
:
string
Static
e
e
:
Const
= ...
Static
pi
pi
:
Const
= ...
Methods
abs
abs
()
:
Expr
|
Const
Returns
Expr
|
Const
add
Hint
addHint
(
hint
:
keyof
Hints
)
:
any
Parameters
hint
:
keyof
Hints
Returns
any
args
args
()
:
string
[]
Returns
string
[]
as
Mul
asMul
()
:
Mul
Returns
Mul
as
Positive
Factor
asPositiveFactor
()
:
Expr
Returns
Expr
as
Tex
asTex
(
options
:
any
)
:
string
Parameters
options
:
any
Returns
string
codegen
codegen
()
:
string
Returns
string
collect
collect
(
options
?:
Options
)
:
Expr
Parameters
Optional
options
:
Options
Returns
Expr
compare
compare
(
other
:
Expr
)
:
boolean
Parameters
other
:
Expr
Returns
boolean
compile
compile
()
:
(
vars
:
Expr
[]
)
=>
string
Returns
(
vars
:
Expr
[]
)
=>
string
complete
Parse
completeParse
()
:
Expr
Returns
Expr
construct
construct
(
args
:
any
[]
)
:
any
Parameters
args
:
any
[]
Returns
any
equals
equals
(
other
:
Expr
)
:
boolean
Parameters
other
:
Expr
Returns
boolean
eval
eval
(
vars
?:
Vars
,
options
?:
ParseOptions
)
:
number
Parameters
vars
:
Vars
= {}
Optional
options
:
ParseOptions
Returns
number
expand
expand
()
:
Expr
Returns
Expr
expr
Args
exprArgs
()
:
Expr
[]
Returns
Expr
[]
factor
factor
(
options
:
any
)
:
Expr
Parameters
options
:
any
Returns
Expr
find
GCD
findGCD
(
factor
:
Expr
)
:
Expr
Parameters
factor
:
Expr
Returns
Expr
get
Consts
getConsts
()
:
string
[]
Returns
string
[]
get
Denominator
getDenominator
()
:
Expr
Returns
Expr
get
Units
getUnits
()
:
any
[]
Returns
any
[]
get
Vars
getVars
(
excludeFunc
?:
boolean
)
:
any
[]
Parameters
Optional
excludeFunc
:
boolean
Returns
any
[]
has
has
(
func
:
any
)
:
boolean
Parameters
func
:
any
Returns
boolean
is
is
(
func
:
any
)
:
boolean
Parameters
func
:
any
Returns
boolean
is
Divide
isDivide
()
:
boolean
Returns
boolean
is
Negative
isNegative
()
:
boolean
Returns
boolean
is
Positive
isPositive
()
:
boolean
Returns
boolean
is
Root
isRoot
()
:
boolean
Returns
boolean
is
Simplified
isSimplified
()
:
boolean
Returns
boolean
is
Subtract
isSubtract
()
:
boolean
Returns
boolean
name
name
()
:
string
Returns
string
needs
Explicit
Mul
needsExplicitMul
()
:
boolean
Returns
boolean
negate
negate
()
:
Expr
Returns
Expr
normalize
normalize
()
:
Expr
Returns
Expr
partial
Eval
partialEval
(
vars
:
Vars
)
:
Expr
Parameters
vars
:
Vars
Returns
Expr
print
print
()
:
string
Returns
string
raise
To
The
raiseToThe
(
exp
:
Expr
,
options
?:
{
preciseFloats
?:
boolean
}
)
:
Expr
Parameters
exp
:
Expr
Optional
options
:
{
preciseFloats
?:
boolean
}
Returns
Expr
recurse
recurse
()
:
Const
Returns
Const
repr
repr
()
:
string
Returns
string
same
Form
sameForm
(
other
:
Expr
)
:
boolean
Parameters
other
:
Expr
Returns
boolean
simplify
simplify
(
options
?:
Options
)
:
any
Parameters
Optional
options
:
Options
Returns
any
strip
strip
()
:
Expr
Returns
Expr
tex
tex
()
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
func
hints
symbol
e
pi
Methods
abs
add
Hint
args
as
Mul
as
Positive
Factor
as
Tex
codegen
collect
compare
compile
complete
Parse
construct
equals
eval
expand
expr
Args
factor
find
GCD
get
Consts
get
Denominator
get
Units
get
Vars
has
is
is
Divide
is
Negative
is
Positive
is
Root
is
Simplified
is
Subtract
name
needs
Explicit
Mul
negate
normalize
partial
Eval
print
raise
To
The
recurse
repr
same
Form
simplify
strip
tex
Perseus
Loading...