Re: [fricas-devel] [BUG?] (x::EXPR INT)^(-3.4), power in EXPR FLOAT

2017-04-04 Thread oldk1331
> Of course 'simplify' and friends can simplify them at will. I think simplifExp should handle that, I'll add it in a separate patch. > - If we want sane semantics for Expression(Float) we should > convert floats to rationals in almost all places. Some other > systems allow users to put floa

Re: [fricas-devel] [BUG?] (x::EXPR INT)^(-3.4), power in EXPR FLOAT

2017-04-04 Thread Waldek Hebisch
oldk1331 wrote: > > (1) -> (x::EXPR INT)^(-3.4) > >1.0 >(1) > 3 5+-+2 > x \|x > Type: Expression(Float) > > > I don't think this result is correct. It can get very ugly > because of the nature of

Re: [fricas-devel] [BUG?] (x::EXPR INT)^(-3.4), power in EXPR FLOAT

2017-04-04 Thread Waldek Hebisch
> > > Of course the problem is due to approximate nature of floating > > point numbers. And we have Approximate for such purpose. > > But ATM: > > > > (11) -> Complex(Float) has Approximate > > > >(11) false > > > > We can build a lot of strange domains. Expression(PrimeField(3)) > > and si

Re: [fricas-devel] [BUG?] (x::EXPR INT)^(-3.4), power in EXPR FLOAT

2017-04-04 Thread Waldek Hebisch
oldk1331 wrote: > > Related questions: > > (1) -> (0::EXPR INT)^(x::EXPR INT) > > x >(1) 0 > Type: Expression(Integer) > (2) -> (1::EXPR INT)^(x::EXPR INT) > > x >(2) 1 >

Re: [fricas-devel] [BUG?] (x::EXPR INT)^(-3.4), power in EXPR FLOAT

2017-04-01 Thread oldk1331
Related questions: (1) -> (0::EXPR INT)^(x::EXPR INT) x (1) 0 Type: Expression(Integer) (2) -> (1::EXPR INT)^(x::EXPR INT) x (2) 1 Type: Expression(Integer) Should t

Re: [fricas-devel] [BUG?] (x::EXPR INT)^(-3.4), power in EXPR FLOAT

2017-03-31 Thread oldk1331
> Of course the problem is due to approximate nature of floating > point numbers. And we have Approximate for such purpose. > But ATM: > > (11) -> Complex(Float) has Approximate > >(11) false > > We can build a lot of strange domains. Expression(PrimeField(3)) > and similar are likely to sho

Re: [fricas-devel] [BUG?] (x::EXPR INT)^(-3.4), power in EXPR FLOAT

2017-03-31 Thread Waldek Hebisch
oldk1331 wrote: > > (1) -> (x::EXPR INT)^(-3.4) > >1.0 >(1) > 3 5+-+2 > x \|x > Type: Expression(Float) > > > I don't think this result is correct. It can get very ugly > because of the nature of

[fricas-devel] [BUG?] (x::EXPR INT)^(-3.4), power in EXPR FLOAT

2017-03-31 Thread oldk1331
(1) -> (x::EXPR INT)^(-3.4) 1.0 (1) 3 5+-+2 x \|x Type: Expression(Float) I don't think this result is correct. It can get very ugly because of the nature of Float (a big fraction). In combfunc.spad