Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IntrepidPig/mexprp
/ functions
Functions
168 in github.com/IntrepidPig/mexprp
⨍
Functions
168
◇
Types & classes
49
↓ 42 callers
Method
to_string
(&self)
src/op.rs:71
↓ 41 callers
Method
eval_ctx
Evaluate the term with the given context
src/term.rs:75
↓ 14 callers
Method
op
Perform an operation on all the values of an answer with all the values of another answer
src/answer.rs:21
↓ 12 callers
Method
unop
Perform an operation on all the values of an answer
src/answer.rs:64
↓ 11 callers
Method
unwrap_single
Unwrap the single variant of an answer
src/answer.rs:87
↓ 8 callers
Method
set_var
Add a variable definition to the context, replacing any existing one with the same name
src/context.rs:146
↓ 4 callers
Method
eval
Evaluate the term with the default context
src/term.rs:69
↓ 4 callers
Method
mul
(&self, other: &Self, _ctx: &Context<Self>)
src/num/rugrat.rs:51
↓ 4 callers
Method
partial_cmp
(&self, other: &ComplexFloat)
src/num/complexfloat.rs:99
↓ 4 callers
Method
precedence
(&self)
src/op.rs:32
↓ 3 callers
Method
is_operand
Returns true if this expr is an operand (not an operator)
src/term.rs:411
↓ 3 callers
Method
sub
(&self, other: &Self, _ctx: &Context<Self>)
src/num/rugrat.rs:45
↓ 2 callers
Method
add
(&self, other: &Self, _ctx: &Context<Self>)
src/num/rugrat.rs:39
↓ 2 callers
Function
eval
Parse and evaluate a string
src/lib.rs:156
↓ 2 callers
Method
join
Adds all the answers of another answer to the asnwers of this answer, returning a new answer
src/answer.rs:103
↓ 2 callers
Method
mul
(&self, other: &Self, _ctx: &Context<Self>)
src/num/complexrugrat.rs:76
↓ 2 callers
Method
mul
(&self, other: &Self, _ctx: &Context<Self>)
src/num/complexfloat.rs:54
↓ 2 callers
Function
paren_to_exprs
Convert ParenTokens to exprs. This function accomplishes two things at once. First, it decides if names are functions or variables depending on their
src/term.rs:146
↓ 2 callers
Method
parse
Parse a string into an expression
src/term.rs:47
↓ 2 callers
Method
set_func
Add a function definition to the context, replacing any existing one with the same name
src/context.rs:151
↓ 2 callers
Function
sin
()
src/tests.rs:47
↓ 2 callers
Method
to_string
(&self)
src/opers.rs:36
↓ 2 callers
Function
tokens_to_args
Converts a Vec of ParenTokens into a Vec of a Vec of Exprs, splitting them by commas and then parsing them into Exprs.
src/term.rs:215
↓ 1 callers
Method
abs
(&self, _ctx: &Context<Self>)
src/num/rugrat.rs:63
↓ 1 callers
Method
conjugate
Returns the complex conjugate of this number
src/num/complexrugrat.rs:100
↓ 1 callers
Method
conjugate
Returns the complex conjugate of this number
src/num/complexfloat.rs:78
↓ 1 callers
Method
div
(&self, other: &Self, _ctx: &Context<Self>)
src/num/rugrat.rs:57
↓ 1 callers
Method
eval_ctx
Evaluate the expression with the given context
src/expr.rs:51
↓ 1 callers
Function
get_parse_order
Return a list of functions to use (in order) to try and parse the next token based on the last token that was parsed.
src/parse.rs:179
↓ 1 callers
Function
get_tokens
Get ParenTokens from a string
src/parse.rs:313
↓ 1 callers
Function
insert_operators
(mut raw: Vec<Expr>)
src/term.rs:234
↓ 1 callers
Method
is_left_associative
(&self)
src/op.rs:52
↓ 1 callers
Function
next_token
Get the next token of a string based on the last token. Returns either a Token and the rest of the string or an error
src/parse.rs:216
↓ 1 callers
Method
partial_cmp
(&self, other: &ComplexRugRat)
src/num/complexrugrat.rs:109
↓ 1 callers
Function
postfix_to_term
Parse a postfix token stream into a single term
src/term.rs:319
↓ 1 callers
Method
pow
(&self, _other: &Self, _ctx: &Context<Self>)
src/num/mod.rs:103
↓ 1 callers
Function
recurse
(raw: &[Token])
src/parse.rs:253
↓ 1 callers
Function
recurse
(raw: &[Expr])
src/term.rs:277
↓ 1 callers
Method
should_shunt
True if the operator should be evaluated before this one
src/op.rs:97
↓ 1 callers
Function
to_paren_tokens
Convert tokens to a tree based on expression within parentheses
src/parse.rs:252
↓ 1 callers
Method
to_str
(&self)
src/op.rs:120
↓ 1 callers
Function
to_tokens
Convert a string to a list of tokens
src/parse.rs:241
↓ 1 callers
Method
to_vec
Convert this answer into a vector
src/answer.rs:95
↓ 1 callers
Function
tokenexprs_to_postfix
Convert a vector of infix exprs to a postfix representations (shunting yard)
src/term.rs:276
↓ 1 callers
Method
tryord
(&self, other: &Self, _ctx: &Context<Self>)
src/num/rugrat.rs:31
Method
abs
(&self, _ctx: &Context<Self>)
src/num/mod.rs:121
Method
abs
(&self, ctx: &Context<Self>)
src/num/rugcomplex.rs:73
Method
abs
(&self, _ctx: &Context<Self>)
src/num/float64.rs:83
Method
acos
(&self, _ctx: &Context<Self>)
src/num/mod.rs:151
Method
acos
(&self, ctx: &Context<Self>)
src/num/rugcomplex.rs:103
Method
acos
(&self, _ctx: &Context<Self>)
src/num/float64.rs:103
Method
add
(&self, _other: &Self, _ctx: &Context<Self>)
src/num/mod.rs:79
Method
add
(&self, other: &Self, ctx: &Context<Self>)
src/num/rugcomplex.rs:33
Method
add
(&self, other: &Self, _ctx: &Context<Self>)
src/num/complexrugrat.rs:62
Method
add
(&self, other: &Self, _ctx: &Context<Self>)
src/num/float64.rs:49
Method
add
(&self, other: &Self, _ctx: &Context<Self>)
src/num/complexfloat.rs:40
Method
asin
(&self, _ctx: &Context<Self>)
src/num/mod.rs:145
Method
asin
(&self, ctx: &Context<Self>)
src/num/rugcomplex.rs:97
Method
asin
(&self, _ctx: &Context<Self>)
src/num/float64.rs:99
Method
atan
(&self, _ctx: &Context<Self>)
src/num/mod.rs:157
Method
atan
(&self, ctx: &Context<Self>)
src/num/rugcomplex.rs:109
Method
atan
(&self, _ctx: &Context<Self>)
src/num/float64.rs:107
Method
atan2
(&self, _other: &Self, _ctx: &Context<Self>)
src/num/mod.rs:163
Method
atan2
(&self, other: &Self, _ctx: &Context<Self>)
src/num/float64.rs:111
Function
basic
()
src/tests.rs:13
Method
ceil
(&self, _ctx: &Context<Self>)
src/num/rugrat.rs:75
Method
ceil
(&self, _ctx: &Context<Self>)
src/num/mod.rs:175
Method
ceil
(&self, ctx: &Context<Self>)
src/num/rugcomplex.rs:124
Method
ceil
(&self, _ctx: &Context<Self>)
src/num/float64.rs:119
Method
cos
(&self, _ctx: &Context<Self>)
src/num/mod.rs:133
Method
cos
(&self, ctx: &Context<Self>)
src/num/rugcomplex.rs:85
Method
cos
(&self, _ctx: &Context<Self>)
src/num/float64.rs:91
Method
default
()
src/context.rs:177
Method
div
(&self, _other: &Self, _ctx: &Context<Self>)
src/num/mod.rs:97
Method
div
(&self, other: &Self, ctx: &Context<Self>)
src/num/rugcomplex.rs:51
Method
div
(&self, other: &Self, ctx: &Context<Self>)
src/num/complexrugrat.rs:87
Method
div
(&self, other: &Self, _ctx: &Context<Self>)
src/num/float64.rs:61
Method
div
(&self, other: &Self, ctx: &Context<Self>)
src/num/complexfloat.rs:65
Method
empty
Creates an empty `Context` with the default config
src/context.rs:156
Function
eq
(x: N, y: f64)
src/tests.rs:82
Method
eq
(&self, other: &ComplexRugRat)
src/num/complexrugrat.rs:115
Method
eq
(&self, other: &ComplexFloat)
src/num/complexfloat.rs:105
Method
eval
(&self, args: &[Term<N>], ctx: &Context<N>)
src/func.rs:19
Method
eval
(&self, ctx: &Context<N>)
src/opers.rs:27
Method
eval
(&self, args: &[Term<N>], ctx: &Context<N>)
src/context.rs:216
Method
eval
Evaluate the expression
src/expr.rs:46
Function
eval_ctx
Parse and evaluate a string with the given context
src/lib.rs:161
Function
expr_context
()
src/tests.rs:31
Method
floor
(&self, _ctx: &Context<Self>)
src/num/rugrat.rs:69
Method
floor
(&self, _ctx: &Context<Self>)
src/num/mod.rs:169
Method
floor
(&self, ctx: &Context<Self>)
src/num/rugcomplex.rs:115
Method
floor
(&self, _ctx: &Context<Self>)
src/num/float64.rs:115
Method
fmt
(&self, f: &mut fmt::Formatter)
src/answer.rs:127
Method
fmt
(&self, f: &mut fmt::Formatter)
src/term.rs:120
Method
fmt
(&self, f: &mut fmt::Formatter)
src/context.rs:189
Method
fmt
(&self, f: &mut fmt::Formatter)
src/op.rs:108
Method
fmt
(&self, f: &mut fmt::Formatter)
src/expr.rs:57
Method
fmt
(&self, f: &mut fmt::Formatter)
src/num/complexrugrat.rs:121
Method
fmt
(&self, f: &mut fmt::Formatter)
src/num/complexfloat.rs:111
Method
from
(t: ParseError)
src/errors.rs:81
next →
1–100 of 168, ranked by callers