0x is the prefix for hexadecimal numbers, eg 0xff Since zero times anything is zero, it makes little sense to actually include such a term so the syntactic ambiguity seems acceptable.
Cheers Lex On Friday, November 28, 2014 5:30:25 PM UTC+10, paul analyst wrote: > > Sometimes in ax2+bx+c b is as parameter and can be zero . > > Version 0.4.0-dev+1642 (2014-11-17 08:38 UTC) > Commit aa1f53b (10 days old master) > x86_64-w64-mingw32 > julia> using HDF5 > > > julia> f(x) = (3x^2 - 4x + 2); fplot(f, [-5,5]) > > julia> f(x) = (3x^2 - 0x + 2); fplot(f, [-5,5]) > (type-error uint8 number #f) > unexpected error: #0 (sized-uint-literal #f "0x" 4) > ... > ... > ... > parse-RtoL/lambda (call f x) = #t) > #41 (parse-eq [#f #<io stream> #f #f]) > ERROR: syntax: malformed expression > > julia> > Paul >
