ideas for inputs/outputs in the history view.

Messages in english

Modérateur : xcasadmin

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

ideas for inputs/outputs in the history view.

Message par compsystems » lun. juin 26, 2017 1:46 pm

Hi, Bernard.

I am doing a research project on the automation of mathematics, we need free software, so far the most complete is Xcas,
since Geogebra does not include the language of the Xcas and not all commands

I think for the Xcas GUI, this needs a new menu about (I/O), to manipulate the expression of inputs / outputs in the history.

The following statements are input instructions to solve a simple system of two equations by substitution,
trying to do the steps that a human does, without storing the expressions in identifiers,

Code : Tout sélectionner

[ y = x^2, y = 2*x + 3 ]
subst((ans(-1)(2)),ans(-1)(1))
ans(-1) - (2*x + 3) 
factor(ans(-1))
[ part(left(ans(-1)),1)=0, part(left(ans(-1)),2)=0 ]
[ans(-1)(1)+3, ans(-1)(2)-1 ]
subst(ans(-6)(1),ans(-1)(1))
subst(ans(-7)(2),ans(-2)(1))
subst(ans(-8)(1),ans(-3)(2))
subst(ans(-9)(1),ans(-4)(2))
subst(ans(-10)(1),[ans(-5)(1),ans(-4)])
evalb(ans(-1))
subst(ans(-12)(1),[ans(-7)(2),ans(-3)])
evalb(ans(-1))

To facilitate the drafting of documents requires the following

i: I/O menu
ia: export the input to unicode text format

ib: option and export and copy with the numbering of the lines

Code : Tout sélectionner

 1:[ y = x^2, y = 2*x + 3 ]
 2:subst((ans(-1)(2)),ans(-1)(1))
 3:ans(-1) - (2*x + 3) 
 4:factor(ans(-1))
 5:[ part(left(ans(-1)),1)=0, part(left(ans(-1)),2)=0 ]
 6:[ans(-1)(1)+3, ans(-1)(2)-1 ]
 7:subst(ans(-6)(1),ans(-1)(1))
 8:subst(ans(-7)(2),ans(-2)(1))
 9:subst(ans(-8)(1),ans(-3)(2))
10:subst(ans(-9)(1),ans(-4)(2))
11:subst(ans(-10)(1),[ans(-5)(1),ans(-4)])
12:evalb(ans(-1))
13:subst(ans(-12)(1),[ans(-7)(2),ans(-3)])
14:evalb(ans(-1))
ic: an option to copy and export also the output as text

Code : Tout sélectionner

 1:[ y = x^2, y = 2*x + 3 ]
   [y=(x^2),y=(2*x+3)]
 2:subst((ans(-1)(2)),ans(-1)(1))
   x^2=(2*x+3)
 3:ans(-1) - (2*x + 3) 
   x^2-2*x-3=0
 4:factor(ans(-1))
   (x-3)*(x+1)=0
  ...
ii: A new ANSWER(+#) command , with the purpose that the sentences have a common top-down pointer, with a positive argument
I think this way ANSWER(+#) of calling an sentence is more intuitive, than form ANS(-#)

Code : Tout sélectionner

 1:[ y = x^2, y = 2*x + 3 ]
 2:subst((answer(1)(2)),answer(1)(1))
 3:answer(2) - (2*x + 3) 
 4:factor(answer(3))
 5:[ part(left(answer(4)),1)=0, part(left(answer(4)),2)=0 ]
 6:[answer(5)(1)+3, answer(5)(2)-1 ]
 7:subst(answer(1)(1),answer(6)(1))
..
iii:
Finally, it is very useful that sentences are executed line by line as does geogebra so that students see the sequential process instead of showing a whole, this requires a simple menu bar with [>] [||] and the field wait time between sentences

Thanks

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

Re: ideas for inputs/outputs in the history view.

Message par parisse » lun. juin 26, 2017 4:22 pm

I'm not sure that native Xcas is the right GUI to do this, in fact I do not plan to modify the native GUI anymore, I'm now focusing on Xcas for Firefox.
As I already told you, I think that ans() should not be used in a GUI interface because it's too fragile, it was designed for text commandline interfaces. If I have several computations that illustrates a step by step process to show to students, I give variable names to intermediate results then I use Edit>Remove answers below and I save the session. Then I just hit enter starting from the first line. There are some sessions like that in the Help>Examples, e.g. in poly, yun.xws.
I don't believe it's necessary to have something more elaborated to make students understand better (in fact, it's probably better to have nothing prepared and to enter the commandlines in front of them but that's more difficult of course....). And it's not something I would like to program myself, and I obviously don't have the same ressources as Geogebra.
Of course, I could integrate a contribution by someone else in this direction. I think that giac.js+javascript should make it possible for more developers to build something like that, you don't have to master C++ anymore to make interesting HTML5 interactive pages powered by Giac. That's the reason why I worked on https://www-fourier.ujf-grenoble.fr/~pa ... astex.html

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

Re: ideas for inputs/outputs in the history view.

Message par compsystems » mar. juin 27, 2017 2:53 am

I'm watching the file "yun.xws"
The submenu "Remove Answers below", hide all the outputs of each line?

Some simple improvements and I would be very happy and could use XCAS for what I want, For files similar to the following:
http://eonicasys.com.co/public/math/CAS ... as_e00.rar

on the submenu "Edit execute worksheet" to display a popup dialog box,

"Calculate step-by-step (line-by-line) [yes] [no]"

if the user presses [yes] re-runs line by line with a time delay of 1 second :)

Image

Répondre