From: cux Covalenco on 1 Dec 2009 16:52 Hi, I'm using variable precision arithmetic to do some calculations. I need to check that fractional part of the result is less then a value. In the code I have something like res = vpa ( <expression> ) if (res - fix(res) < 1.0e-9 ) .... I get error "Function 'lt' is not defined for values of class 'sym'." I found on the internet that comparison operators are not defined for vpa. Is there any way to do such a comparison? Thank you, Andrei
|
Pages: 1 Prev: xpc target from file Next: Error passing initial condition vector to ODE solver |