Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#553 closed bug (not a bug)

syntax bug in real/complex: use of exponent e demands a . in mantissa

Reported by: gorzel Owned by: somebody
Priority: minor Milestone: Release 4-0-0
Component: singular-kernel Version: 3-1-6
Keywords: Cc:

Description

Input without a . in the mantissa is not recognized, only the exponent survives:

> ring ri = (complex,10,i),(x),(dp(1),C);
> (123.e+10);
0.123e+13
>  (123e+10);   // wrong result
10
> (123.e-13);
0.0000000000123
> (123e-13);   // wrong 
-13
>  (123.e-18);
0.123e-15

Change History (2)

comment:1 Changed 9 years ago by hannes

Resolution: not a bug
Status: newclosed

Not a bug: the . is required according to http://www.singular.uni-kl.de/Manual/latest/sing_140.htm

comment:2 Changed 9 years ago by Oleksandr

Shouldn't we warn in case of wrong input???

Note: See TracTickets for help on using tickets.