[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using rat() heuristics for double-precision input (is this what you
Re: Using rat() heuristics for double-precision input (is this what you wanted?)
Thu, 31 Aug 2017 08:59:29 -0700
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
On 2017-08-31 07:42 AM, murali129 wrote:
when I ran the below script in octave-online, it has thrown some errors
warning : Using rat() heuristics for double-precision input (is this what
error: operator =: no conversion for assignment of 'class' to indexed
error: assignment failed, or no method for 'matrix = class'
syms w0 w1;
w = [w0 w1];
eX = [ 1 0.8];
hX(0) = eX(1,:)*w
Symbolic emits that warning when non-integer double-precision numbers
are converted to symbolic numbers.
Here I'd suggest "ex = [sym(1) sym(4)/5]" to avoid the warning.
The warning and associated docs have been much improved in the next
version of Symbolic.