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

Messages in english

Modérateur : xcasadmin

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

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

Message par compsystems » dim. oct. 07, 2018 6:36 pm

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)]

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

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

Message par parisse » lun. oct. 08, 2018 9:13 am

all_trig_solutions(1) or 0

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

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

Message par compsystems » lun. oct. 08, 2018 2:46 pm

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.

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

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

Message par parisse » mar. oct. 09, 2018 12:54 pm

with_sqrt
There is no command for increasing power.

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

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

Message par compsystems » mar. oct. 09, 2018 11:04 pm

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)

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

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

Message par parisse » mer. oct. 10, 2018 6:15 am

I will add increasing_power

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

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

Message par compsystems » mer. oct. 10, 2018 3:53 pm

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)

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

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

Message par parisse » jeu. oct. 11, 2018 11:53 am

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)

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

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

Message par compsystems » jeu. oct. 11, 2018 1:24 pm

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

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

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

Message par parisse » sam. oct. 13, 2018 6:03 am

Of course it does not work, cas_setup is not a variable name, it's a command.

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

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

Message par compsystems » sam. oct. 13, 2018 1:46 pm

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

Répondre