You mean the parameters in evaluateAt()
if I’m understanding correctly. You can use numericValue
to directly calculate something as a parameter. You can also use variables you create, which is less messy. Just be careful with irrational and non-terminating variables. You’ll always want to round. Say I already had an equation in terms of x, eq1
and I want to evaluate for pi:
n = eq1.evaluateAt(numericValue("\pi"))
or
pi=numericValue("\pi")
n = eq1.evaluateAt(pi)
or a negative fraction:
n = eq1.evaluateAt(numericValue("-2/3"))
or
myFraction = numericValue("-2/3")
n = eq1.evaluateAt(myFraction)
See this other recent thread about comparing values.