In this case the following works:
%%% (217) -> )type on
%%% (217) -> foo := integrate(x*tan(x)^4, x = 0..%pi/4,"noPole")
2
64 log(2) + 3 %pi - 16 %pi - 16
(217) --------------------------------
96
Type: Union(f1: OrderedCompletion(Expression(Integer)),...)
%%% (218) -> foo::Expression(Fraction Integer)
2 1 2 1 1
(218) - log(2) + -- %pi - - %pi - -
3 32 6 6
Type: Expression(Fraction(Integer))
In general, I think, it is not that easy.
Ralf
On 6/12/25 07:29, Alasdair wrote:
I haven't used FriCAS for a very long time, and I've forgotten how to do
almost everything. For example, the command
integrate(x*tan(x)^4, x = 0..%pi/4,"noPole")
results in an expression which is a large fraction, the numerator
consisting of powers of %pi, ln(2), and the denominator being 96.
All I want to do is to break it up into 4 simple fractions:
%pi^2/32 - %pi/6 + 2*ln(2)/3 -1/6
How can I do this? And with apologies for such a simple question.
Alasdair
--
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 view this discussion visit
https://groups.google.com/d/msgid/fricas-devel/a293b3a7-4c2b-4132-9cb2-d592e8ca1208%40hemmecke.org.