How can I teach Maple to simplify these expressions?
I thought this would be peanuts for Maple
(especially as it is peanuts for the competitor).
Depends on what one wants do have ... If L denotes
the list of your equations then for example
convert(L, radical):
simplify(%);
2 3 4 4 3 2
[x, x , x , x , (x - 1) (x + x + x + x + 1)]
On 14.08.2015 15:00, Peter Luschny wrote:
How can I teach Maple to simplify these expressions?
I thought this would be peanuts for Maple
(especially as it is peanuts for the competitor).
...
Depends on what one wants do have ... If L denotes
the list of your equations then for example
convert(L, radical):
simplify(%);
convert(L, radical):OK. So what about these?
simplify(%);
On Friday, August 14, 2015 at 4:02:34 PM UTC+2, Axel Vogt wrote:+(8/7)*x^3*cos((3/7)*Pi)+1/7-(4/7)*x+(6/7)*x^2-(4/7)*x^3+x^4
On 14.08.2015 15:00, Peter Luschny wrote:
How can I teach Maple to simplify these expressions?...
I thought this would be peanuts for Maple
(especially as it is peanuts for the competitor).
Depends on what one wants do have ... If L denotes
the list of your equations then for example
convert(L, radical):
simplify(%);
OK. So what about these?
[1] -1/7+x-(2/7)*cos((2/7)*Pi)+(2/7)*cos((3/7)*Pi)+(2/7)*cos((1/7)*Pi)
[2] (4/7)*x*cos((1/7)*Pi)-(2/7)*cos((1/7)*Pi)-(4/7)*x*cos((2/7)*Pi)+(2/7)*cos((2/7)*Pi)+(4/7)*x*cos((3/7)*Pi)-(2/7)*cos((3/7)*Pi)+1/7-(2/7)*x+x^2
[3] (2/7)*cos((1/7)*Pi)+(6/7)*x^2*cos((1/7)*Pi)-(6/7)*x*cos((1/7)*Pi)-(2/7)*cos((2/7)*Pi)-(6/7)*cos((2/7)*Pi)*x^2+(6/7)*x*cos((2/7)*Pi)+(2/7)*cos((3/7)*Pi)+(6/7)*x^2*cos((3/7)*Pi)-(6/7)*x*cos((3/7)*Pi)-1/7+(3/7)*x-(3/7)*x^2+x^3
[4] -(2/7)*cos((1/7)*Pi)-(12/7)*x^2*cos((1/7)*Pi)+(8/7)*x*cos((1/7)*Pi)+(8/7)*x^3*cos((1/7)*Pi)-(8/7)*cos((2/7)*Pi)*x^3+(2/7)*cos((2/7)*Pi)+(12/7)*cos((2/7)*Pi)*x^2-(8/7)*x*cos((2/7)*Pi)-(2/7)*cos((3/7)*Pi)-(12/7)*x^2*cos((3/7)*Pi)+(8/7)*x*cos((3/7)*Pi)
evalf[20](L): fnormal(%): identify(%); # to have a guess
2 3 4
[x, x , x , x ]
convert(L, RootOf): # nun aber in echt ...
simplify(%);
2 3 4
[x, x , x , x ]
I think it is also "what is intended by simplify (and should trig
survive)?"
PS: would you mind to post as list
I expect the remainder to be handled in the same manner. But I don't see
why Derive should not fail to simplify similar expressions whose trigonometric arguments involve larger denominators, as the rule to
handle SIN(3*pi/14) - SIN(pi/14) is not generic.
On 14.08.2015 18:45, Peter Luschny wrote:Pi)+(8/7)*x^3*cos((3/7)*Pi)+1/7-(4/7)*x+(6/7)*x^2-(4/7)*x^3+x^4
OK. So what about these?
[1] -1/7+x-(2/7)*cos((2/7)*Pi)+(2/7)*cos((3/7)*Pi)+(2/7)*cos((1/7)*Pi)
[2] (4/7)*x*cos((1/7)*Pi)-(2/7)*cos((1/7)*Pi)-(4/7)*x*cos((2/7)*Pi)+(2/7)*cos((2/7)*Pi)+(4/7)*x*cos((3/7)*Pi)-(2/7)*cos((3/7)*Pi)+1/7-(2/7)*x+x^2
[3] (2/7)*cos((1/7)*Pi)+(6/7)*x^2*cos((1/7)*Pi)-(6/7)*x*cos((1/7)*Pi)-(2/7)*cos((2/7)*Pi)-(6/7)*cos((2/7)*Pi)*x^2+(6/7)*x*cos((2/7)*Pi)+(2/7)*cos((3/7)*Pi)+(6/7)*x^2*cos((3/7)*Pi)-(6/7)*x*cos((3/7)*Pi)-1/7+(3/7)*x-(3/7)*x^2+x^3
[4] -(2/7)*cos((1/7)*Pi)-(12/7)*x^2*cos((1/7)*Pi)+(8/7)*x*cos((1/7)*Pi)+(8/7)*x^3*cos((1/7)*Pi)-(8/7)*cos((2/7)*Pi)*x^3+(2/7)*cos((2/7)*Pi)+(12/7)*cos((2/7)*Pi)*x^2-(8/7)*x*cos((2/7)*Pi)-(2/7)*cos((3/7)*Pi)-(12/7)*x^2*cos((3/7)*Pi)+(8/7)*x*cos((3/7)*
evalf[20](L): fnormal(%): identify(%); # to have a guess
2 3 4
[x, x , x , x ]
convert(L, RootOf): # nun aber in echt ...
simplify(%);
2 3 4
[x, x , x , x ]
I think it is also "what is intended by simplify (and should trig
survive)?" Thus I included sci.math.symbolic for further answers.
PS: would you mind to post as list
PPS: well, it may break down at some degree
How can I teach Maple to simplify these expressions?
I thought this would be peanuts for Maple
(especially as it is peanuts for the competitor).
Maple does it, using convert(%, RootOf): simplify(%); gives the monomials x^k
Hi Martin!3/7)*Pi)+(2/7)*cos((3/7)*Pi)+(20/7)*x^2*cos((3/7)*Pi)-(20/7)*x^3*cos((3/7)*Pi)-(10/7)*x*cos((3/7)*Pi)-1/7+(5/7)*x-(10/7)*x^2+(10/7)*x^3-(5/7)*x^4+x^5,
I expect the remainder to be handled in the same manner. But I don't see
why Derive should not fail to simplify similar expressions whose
trigonometric arguments involve larger denominators, as the rule to
handle SIN(3*pi/14) - SIN(pi/14) is not generic.
I include some further examples (array of expressions).
case 7:
[(10/7)*x^4*cos((1/7)*Pi)+(2/7)*cos((1/7)*Pi)+(20/7)*x^2*cos((1/7)*Pi)-(20/7)*x^3*cos((1/7)*Pi)-(10/7)*x*cos((1/7)*Pi)-(20/7)*cos((2/7)*Pi)*x^2-(10/7)*cos((2/7)*Pi)*x^4+(10/7)*x*cos((2/7)*Pi)-(2/7)*cos((2/7)*Pi)+(20/7)*cos((2/7)*Pi)*x^3+(10/7)*x^4*cos((
-(6/7)*x+(15/7)*x^2-(20/7)*x^3+(15/7)*x^4-(6/7)*x^5+x^6+(30/7)*cos((2/7)*Pi)*x^4-(12/7)*cos((2/7)*Pi)*x^5-(30/7)*x^4*cos((3/7)*Pi)-(30/7)*x^4*cos((1/7)*Pi)-(2/7)*cos((3/7)*Pi)-(2/7)*cos((1/7)*Pi)-(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)*x*sin((1/9)*Pi)+((16/9)*I)*x^3*sin((1/9)*Pi)-((16/3)*I)*x*sin((4/9)*Pi)-((16/3)*I)*x^2*sin((1/9)*Pi)+((16/3)*I)*x^2*sin((4/9)*Pi)-((16/9)*I)*x^3*sin((4/9)*Pi)-((16/3)*I)*sin((2/9)*Pi)*x^2+((16/9)*I)*sin((2/9)*Pi)*x^3+((16/3)*I)*x*sin((2/9)*Pi)+((16/9)*I)*sin((4/9)*Pi)-((16/9)*I)*sin((2/9)*Pi)-((16/9)*I)*sin((1/9)*Pi)+(8/9)*x^3*cos((1/9)*Pi)-(2/9)*cos((1/9)*Pi)-(4/3)*x^2*cos((1/9)*Pi)+(4/3)*cos((2/9)*Pi)*x^2+(2/9)*cos((2/9)*Pi)-(8/9)*cos((2/9)*Pi)*x^3+(4/3)*x^2*cos((4/9)*Pi)+(2/9)*cos((4/9)*
x^5-(10/9)*cos((2/9)*Pi)*x^4+(20/9)*cos((2/9)*Pi)*x^3-(10/9)*x*cos((1/9)*Pi)+(10/9)*x*cos((4/9)*Pi)+(10/9)*cos((2/9)*Pi)*x+(20/9)*x^3*cos((4/9)*Pi)-(20/9)*x^3*cos((1/9)*Pi)-(2/9)*cos((2/9)*Pi)+((20/9)*I)*sin((2/9)*Pi)-((20/9)*I)*sin((4/9)*Pi)+((20/9)*I)*sin((1/9)*Pi)-((80/9)*I)*sin((2/9)*Pi)*x^3+((20/9)*I)*sin((2/9)*Pi)*x^4-((20/9)*I)*x^4*sin((4/9)*Pi)+((20/9)*I)*x^4*sin((1/9)*Pi)+((40/3)*I)*sin((2/9)*Pi)*x^2-((40/3)*I)*x^2*sin((4/9)*Pi)+((40/3)*I)*x^2*sin((1/9)*Pi)+((80/9)*I)*x^3*sin((4/9)*Pi)-((80/9)*
case 11:(4/11)*Pi)+(6/11)*x*cos((4/11)*Pi)+(2/11)*cos((5/11)*Pi)+(6/11)*x^2*cos((5/11)*Pi)-(6/11)*x*cos((5/11)*Pi)-1/11+(3/11)*x-(3/11)*x^2+x^3,
[-1/11+x+(2/11)*cos((5/11)*Pi)+(2/11)*cos((1/11)*Pi)+(2/11)*cos((3/11)*Pi)-(2/11)*cos((4/11)*Pi)-(2/11)*cos((2/11)*Pi),
-(2/11)*cos((1/11)*Pi)+(4/11)*x*cos((1/11)*Pi)+(2/11)*cos((2/11)*Pi)-(4/11)*cos((2/11)*Pi)*x-(2/11)*cos((3/11)*Pi)+(4/11)*x*cos((3/11)*Pi)+(2/11)*cos((4/11)*Pi)-(4/11)*x*cos((4/11)*Pi)-(2/11)*cos((5/11)*Pi)+(4/11)*x*cos((5/11)*Pi)+1/11-(2/11)*x+x^2,
(2/11)*cos((1/11)*Pi)+(6/11)*x^2*cos((1/11)*Pi)-(6/11)*x*cos((1/11)*Pi)-(6/11)*cos((2/11)*Pi)*x^2-(2/11)*cos((2/11)*Pi)+(6/11)*cos((2/11)*Pi)*x+(2/11)*cos((3/11)*Pi)+(6/11)*x^2*cos((3/11)*Pi)-(6/11)*x*cos((3/11)*Pi)-(6/11)*x^2*cos((4/11)*Pi)-(2/11)*cos(
-(4/11)*x+(6/11)*x^2-(4/11)*x^3+x^4-(8/11)*cos((2/11)*Pi)*x^3+(12/11)*cos((2/11)*Pi)*x^2-(8/11)*cos((2/11)*Pi)*x-(12/11)*x^2*cos((5/11)*Pi)+(12/11)*x^2*cos((4/11)*Pi)-(12/11)*x^2*cos((1/11)*Pi)-(12/11)*x^2*cos((3/11)*Pi)-(2/11)*cos((5/11)*Pi)-(2/11)*cos((1/11)*Pi)-(2/11)*cos((3/11)*Pi)+(2/11)*cos((4/11)*Pi)+(8/11)*x^3*cos((1/11)*Pi)+(8/11)*x^3*cos((3/11)*Pi)+(8/11)*x^3*cos((5/11)*Pi)-(8/11)*x^3*cos((4/11)*Pi)+1/11+(2/11)*cos((2/11)*Pi)-(8/11)*x*cos((4/11)*Pi)+(8/11)*x*cos((3/11)*Pi)+(8/11)*x*cos((1/
(5/11)*x-(10/11)*x^2+(10/11)*x^3-(5/11)*x^4+x^5+(20/11)*cos((2/11)*Pi)*x^3-(20/11)*cos((2/11)*Pi)*x^2+(10/11)*cos((2/11)*Pi)*x-(10/11)*cos((2/11)*Pi)*x^4+(20/11)*x^2*cos((5/11)*Pi)-(20/11)*x^2*cos((4/11)*Pi)+(20/11)*x^2*cos((1/11)*Pi)+(20/11)*x^2*cos((3/11)*Pi)+(2/11)*cos((5/11)*Pi)+(2/11)*cos((1/11)*Pi)+(2/11)*cos((3/11)*Pi)-(2/11)*cos((4/11)*Pi)-(20/11)*x^3*cos((1/11)*Pi)-(20/11)*x^3*cos((3/11)*Pi)-(20/11)*x^3*cos((5/11)*Pi)+(20/11)*x^3*cos((4/11)*Pi)-(2/11)*cos((2/11)*Pi)-1/11+(10/11)*x^4*cos((5/11)
Can Rubi handle them?
And: what is the _general_ reduction strategy?
On 19.08.2015 20:19, Peter Luschny wrote:
I expect the remainder to be handled in the same manner. But I
don't see why Derive should not fail to simplify similar
expressions whose trigonometric arguments involve larger
denominators, as the rule to handle SIN(3*pi/14) - SIN(pi/14) is
not generic.
I include some further examples (array of expressions).
case 7:
[...];
case 9:
[...];
case 11:
[...];
Can Rubi handle them?
And: what is the _general_ reduction strategy?
Maple does it, using convert(%, RootOf): simplify(%); gives the
monomials x^k
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 430 |
Nodes: | 16 (2 / 14) |
Uptime: | 121:40:43 |
Calls: | 9,059 |
Calls today: | 6 |
Files: | 13,398 |
Messages: | 6,017,011 |
Posted today: | 1 |