Page 1 sur 1

All_trig_sol:=1/0 principal trig. solution versus all trig. solutions

Publié : dim. oct. 07, 2018 6:36 pm
par compsystems
Hi. Is there a (All_trig_sol) variable to change the flag by command?

// principal solution
All_trig_sol: off // manually on cas config
All_trig_sol:=0:;
angle_radian:=1:; solve( sin(t)=sin(2*t), t, '=' ) [enter] =>
"Done",set[t=(-pi/3),t=0, t=(pi/3),t=pi]

// all solutions
All_trig_sol: on // manually on cas config
All_trig_sol:=1:;
angle_radian:=1:; solve( sin(t)=sin(2*t), t, '=' ) [enter] =>
"Done",set[t=(2*n_4*pi),t=((6*n_5*pi+pi)/3), t=((6*n_6*pi-pi)/3), t=(2*n_7*pi+pi)]

Re: All_trig_sol:=1/0 principal trig. solution versus all trig. solutions

Publié : lun. oct. 08, 2018 9:13 am
par parisse
all_trig_solutions(1) or 0

Re: All_trig_sol:=1/0 principal trig. solution versus all trig. solutions

Publié : lun. oct. 08, 2018 2:46 pm
par compsystems
ok, but it also works the way

all_trig_solutions: = 1; or all_trig_solutions: = 0;

please highlight the all_trig_solutions keyword and add it to the help index, buttom [?]

That other keywords exist to change the CAS modes that are not in the help buttom?

autosimplify, ok
approx_mode, ok
complex_variables, ok
complex_mode, ok
angle_radian, ok
increasing_power ?
sqrt?

Thanks BP.

Re: All_trig_sol:=1/0 principal trig. solution versus all trig. solutions

Publié : mar. oct. 09, 2018 12:54 pm
par parisse
with_sqrt
There is no command for increasing power.

Re: All_trig_sol:=1/0 principal trig. solution versus all trig. solutions

Publié : mar. oct. 09, 2018 11:04 pm
par compsystems
with_sqrt var not operate in the way with_sqrt:=1/0 , why?

increasing_power flag is important to see the output according to the poly2symb command

coeff(5*t^2 + 3*x*t^2 - 16*t^5 + y^3 - 2*x*t^2 + 9,t); => poly1[-16, 0 , 0 ,x+5 ,0 , y^3+9]

increasing_power: off manually

poly2symb(poly1[-16,0,0,x+5,0,y^3+9],t) => -16*t^5 + t^2*x + 5*t^2 + (y^3+9)

Re: All_trig_sol:=1/0 principal trig. solution versus all trig. solutions

Publié : mer. oct. 10, 2018 6:15 am
par parisse
I will add increasing_power

Re: All_trig_sol:=1/0 principal trig. solution versus all trig. solutions

Publié : mer. oct. 10, 2018 3:53 pm
par compsystems
thanks ^

I'm trying to change the configuration from setup cmd, but it throws me the next message
cas_setup:=insert(cas_setup(),9,1) ) => cas_setup:=insert(cas_setup(),9,1)

Re: All_trig_sol:=1/0 principal trig. solution versus all trig. solutions

Publié : jeu. oct. 11, 2018 11:53 am
par parisse
I don't think you want to insert something, perhaps you want to modify a value? Then define a variable it will be easier.
l:=cas_setup();
l[9]:=1;
cas_setup(l)

Re: All_trig_sol:=1/0 principal trig. solution versus all trig. solutions

Publié : jeu. oct. 11, 2018 1:24 pm
par compsystems
the next two sentences work fine, but not the third

cas_setup(insert(cas_setup(),9,0)) // increasing_power flag off

cas_setup(insert(cas_setup(),9,1)) // increasing_power flag on

cas_setup[9]:=cas_setup()[9]:=1

Re: All_trig_sol:=1/0 principal trig. solution versus all trig. solutions

Publié : sam. oct. 13, 2018 6:03 am
par parisse
Of course it does not work, cas_setup is not a variable name, it's a command.

Re: All_trig_sol:=1/0 principal trig. solution versus all trig. solutions

Publié : sam. oct. 13, 2018 1:46 pm
par compsystems
There are some identifiers that work dually as complex_variables(1/0) or complex_variables:=1/0:

idea: only three identifiers are missing (with_sqrt, autosimplify, cas_setup) that work in the same way in order to unify all the configuration identifiers

Thank you