CQ should be able to handle symbolic functions (of one parameter, but more would be neat). Symbolic functions would (ideally) look like f(x) (though different brackets are fine if the parser doesn't like that) and could have mostly arbitrary labels. These functions would be assumed invertible, so we could do
I don't know if it's a good idea to even expose this to users, but the framework is important for the path to implementing trigonometry. Trigonometric functions and logarithms would use this framework, and you could specify (for example) that log is the inverse function of exp. My thinking is that functions would inherit from some generic function, and you can override the inverse property or something.
CQ should be able to handle symbolic functions (of one parameter, but more would be neat). Symbolic functions would (ideally) look like
f(x)
(though different brackets are fine if the parser doesn't like that) and could have mostly arbitrary labels. These functions would be assumed invertible, so we could door something similar.
I don't know if it's a good idea to even expose this to users, but the framework is important for the path to implementing trigonometry. Trigonometric functions and logarithms would use this framework, and you could specify (for example) that
log
is the inverse function ofexp
. My thinking is that functions would inherit from some generic function, and you can override theinverse
property or something.