Nasser, you can cast the integrand into Expression Fraction Integer
first, then cast back to Expression Float, although there's no reason
to do that:
(1) -> integrate(exp(-2.3*c)::EXPR FRAC INT,c)
23
- ── c
10 10
(1) - ── %e
23
Type: Union(Expression(Fraction(Integer)),...)
(2) -> integrate(exp(-2.3*c)::EXPR FRAC INT,c)::EXPR FLOAT
- 2.3 c
(2) - 0.4347826086_9565217391 %e
Type: Expression(Float)
You can write a macro over that:
macro int2(f,x) == integrate(f::EXPR FRAC INT,x)::EXPR FLOAT
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.