autosimplify() and increasing_power()

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 561
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

autosimplify() and increasing_power()

Message par compsystems » ven. déc. 28, 2018 4:28 pm

Hello BP

The following function only works if it is executed twice.

Code : Tout sélectionner

f():={
if autosimplify()=='Nop' or autosimplify()=='regroup' then autosimplify('simplify'); increasing_power(true); end;
poly2symb([1,2,3])*poly2symb([4,5,6]);
}:;
autosimplify('Nop') [enter] then f() [enter] returns ((x+2)*x+3)*((4*x+5)*x+6)
f() [enter] returns 18+27*x+28*x^2+13*x^3+4*x^4

Répondre