Changes http://wiki.axiom-developer.org/358VariableIsApparentlyAlwaysAssumedToBePositive/diff -- Anonymous wrote::
I think the real reason for the failure of eval, integrate is these functions are not programmed to handle conditionals in function definitions. No that is not correct. The function definition you have is incomplete. Your 'h' is only defined for x<=0. So Axiom cannot evaluate this for the value 'x' since \begin{axiom} x<=0 \end{axiom} That is why it says: "The function h is not defined for the given argument(s)." (Note: click on + axiom on the right to see the output of the compiler.) Anonymous wrote:: the interpreter is trying to evaluate exactly, not numerically Yes that is always true in Axiom. Axiom never makes an approximation unless you specifically ask it to. Anonymous wrote:: Are there any numerical integration functions in Axiom? Yes. For example search for 'romberg' in hyperdoc. Anonymous wrote:: Must I manually translate an integer segment to a float segment? I do not know exactly what you mean by a "float segment" but yes I think writing:: [h(-1.0+0.5*i) for i in 0..2] is sensible if that is the output that you want. What you are calling a "float segment" might be something for like an "interval" but that is a different story. -- forwarded from http://wiki.axiom-developer.org/[EMAIL PROTECTED]