All_trig_sol:=1/0 principal trig. solution versus all trig. solutions
Modérateur : xcasadmin
-
- 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
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)]
// 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
all_trig_solutions(1) or 0
-
- 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
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.
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
with_sqrt
There is no command for increasing power.
There is no command for increasing power.
-
- 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
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)
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
I will add increasing_power
-
- 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
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)
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
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)
l:=cas_setup();
l[9]:=1;
cas_setup(l)
-
- 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
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
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
Of course it does not work, cas_setup is not a variable name, it's a command.
-
- 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
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
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