TImode versus Xcas mode
Modérateur : xcasadmin
-
- Messages : 603
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
TImode versus Xcas mode
What is the difference of TImode (89/92) versus Xcas mode?
I only notice that the output of the solvers are algebraic expressions and not lists of solutions
Xcas mode
1: solve([ y = x^2, y = 2*x + 3 ],[x,y]) [enter] returns
[[3,9],[-1,1]]
TImode (89/92)
1: solve([ y = x^2, y = 2*x + 3 ],[x,y]) [enter] returns
(x=3) and (y=9)) or ((x=-1) and (y=1)
I only notice that the output of the solvers are algebraic expressions and not lists of solutions
Xcas mode
1: solve([ y = x^2, y = 2*x + 3 ],[x,y]) [enter] returns
[[3,9],[-1,1]]
TImode (89/92)
1: solve([ y = x^2, y = 2*x + 3 ],[x,y]) [enter] returns
(x=3) and (y=9)) or ((x=-1) and (y=1)
Re: TImode versus Xcas mode
Indices start at 1, the parser also accepts some ti syntaxes that are not accepted otherwise (for programming).
-
- Messages : 603
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
Re: TImode versus Xcas mode
ok

Within a program with which command to set these modes?
cmd(tiMode/xcasMode)

Within a program with which command to set these modes?
cmd(tiMode/xcasMode)
Re: TImode versus Xcas mode
xcas_mode(0) (default) or xcas_mode(3) (TI)
-
- Messages : 603
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
Re: TImode versus Xcas mode
Ideas
To be able to restore the configuration mode for sotfware and not by hand, please add the option xcas_mode(-1), as it does autosimplify(-1)
xcas_mode(-1) [enter] returns current xcasmode [0 or 1 or 2 or 3]
And when exe xcas_mode(0 or 1 or 2 or 3) , returns the keyword Done as alias of 1, and not 1 because is the output associated with the mode 1=Maple
samples:
1:
xcas_mode(0) [enter] returns
"Warning: some commands like subs might change arguments order"
Done
2:
xcasModeFlag:=xcas_mode(-1) [enter] returns
0
...
3:
xcas_mode(3) [enter] returns
"Warning: some commands like subs might change arguments order"
Done
4:
xcas_mode(xcasModeFlag) // restore the previous xcas mode
To be able to restore the configuration mode for sotfware and not by hand, please add the option xcas_mode(-1), as it does autosimplify(-1)
xcas_mode(-1) [enter] returns current xcasmode [0 or 1 or 2 or 3]
And when exe xcas_mode(0 or 1 or 2 or 3) , returns the keyword Done as alias of 1, and not 1 because is the output associated with the mode 1=Maple
samples:
1:
xcas_mode(0) [enter] returns
"Warning: some commands like subs might change arguments order"
Done
2:
xcasModeFlag:=xcas_mode(-1) [enter] returns
0
...
3:
xcas_mode(3) [enter] returns
"Warning: some commands like subs might change arguments order"
Done
4:
xcas_mode(xcasModeFlag) // restore the previous xcas mode
Dernière modification par compsystems le mer. août 09, 2017 8:30 pm, modifié 1 fois.
Re: TImode versus Xcas mode
xcas_mode() returns the current mode, you can save yourself the current mode before changing it, then you can restore it later.
-
- Messages : 603
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
Re: TImode versus Xcas mode
ok
The output of xcas_mode (#) is currently a string of text, I think it is better to return a confirmation output of change 1 or Done and the warning message in between the cmd and output
The output of xcas_mode (#) is currently a string of text, I think it is better to return a confirmation output of change 1 or Done and the warning message in between the cmd and output
-
- Messages : 603
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
Re: TImode versus Xcas mode
related
That returns autosimplify() and autosimplify(-1)?
case 1:
autosimplify(0) -> 1
autosimplify() -> 1
autosimplify(-1) -> 'Nop'
case 2:
autosimplify(1) -> 1
autosimplify() -> 1
autosimplify(-1) -> 'regroup'
case 3:
autosimplify(2) -> 1
autosimplify() -> 1
autosimplify(-1) -> 'simplify'
case 4:
autosimplify(3) -> 'simplify'
autosimplify() -> 1
autosimplify(-1) -> 'simplify'
That returns autosimplify() and autosimplify(-1)?
case 1:
autosimplify(0) -> 1
autosimplify() -> 1
autosimplify(-1) -> 'Nop'
case 2:
autosimplify(1) -> 1
autosimplify() -> 1
autosimplify(-1) -> 'regroup'
case 3:
autosimplify(2) -> 1
autosimplify() -> 1
autosimplify(-1) -> 'simplify'
case 4:
autosimplify(3) -> 'simplify'
autosimplify() -> 1
autosimplify(-1) -> 'simplify'
Re: TImode versus Xcas mode
I will modify autosimplify() to return the command used.
-
- Messages : 603
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
Re: TImode versus Xcas mode
thanksparisse a écrit :I will modify autosimplify() to return the command used.
Input
(string, explicit input)
autosimplify('Nop' / 'regroup' / 'simplify' ) -> Done
(numeric input)
autosimplify(0 / 1 / 2 ) -> Done
output
autosimplify() -> 0 / 1 / 2 (numeric output)
autosimplify(-1) -> 'Nop' / 'regroup' / 'simplify' (string, explicit output)
same for xcas_mode()
Input
(numeric input)
xcas_mode(1 / 0 ) -> Done
output
xcas_mode() -> 0 / 1 / 2 / 3 (numeric output)
xcas_mode(-1) -> 'Xcas' / 'Maple' / 'Mupad' / 'TI' (string, explicit output)
Dernière modification par compsystems le ven. août 11, 2017 7:03 pm, modifié 1 fois.
-
- Messages : 603
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
Re: TImode versus Xcas mode
Hi, Bernard.
I think I've already mentioned it, I'm doing an educational research project with CAS, and I'm using Xcas for the experiment, my intention in some improvements or aesthetic changes, is for the purpose of favoring or facilitating the use in the interface especially of Undergraduate students, for this reason my suggestions
The arguments 0/1/2 are not very explicit, I see that the command autosimplify accepts numerical arguments as symbolic, the complex_mode command only accepts 'complex' please add 'Nop' as arg
Thanks

I think I've already mentioned it, I'm doing an educational research project with CAS, and I'm using Xcas for the experiment, my intention in some improvements or aesthetic changes, is for the purpose of favoring or facilitating the use in the interface especially of Undergraduate students, for this reason my suggestions
The arguments 0/1/2 are not very explicit, I see that the command autosimplify accepts numerical arguments as symbolic, the complex_mode command only accepts 'complex' please add 'Nop' as arg
Thanks

Re: TImode versus Xcas mode
I don't understand what complex_mode('Nop') would mean. Moreover, students will certainly change complex mode with the interface, not with a command, unless they are sufficiently advanced to understand how to do it properly.