mailing-list for TeXmacs Users

Text archives Help


Maxima session input and output numbers within TeXmacs


Chronological Thread 
  • From: bob <address@hidden>
  • To: address@hidden
  • Subject: Maxima session input and output numbers within TeXmacs
  • Date: Wed, 28 Sep 2005 03:59:39 -0600

When the input cell of a Maxima session (within TeXmacs 1.0.5) is re-run
the cell input number does not change but the ouput number does and so
does the following input cell. As a result the input and ouput line
numbers no longer coincide. Is this a bug or is there a way to change
this behaviour?

For example, start a Maxima session, enter f(x):=x^2-3x+3 which is a
typical first time user mistake. You now have:

Maxima restarted
(%i1) f(x):=x^2-3x+3

Incorrect syntax: x is not an infix operator

f(x):=x^2-3x+
^

(%i2)

By the way, why does it always say Maxima restarted even though it is a
new document and I am starting Maxima for the first time? Anyway, go
back and edit the mistake to include the multiplication sign and run it,
you now have:

Maxima restarted.
(%i1) f(x):=x^2-3*x+3

(%i2) f(x):=x^2-3*x+3 function definition is nice tex-like style

(%i3)

Odd. Now do something in (%i3) like expand((x-3/2)^2+3/4) and get:

Maxima restarted.
(%i1) f(x):=x^2-3*x+3

(%i2) f(x):=x^2-3*x+3 (in the nice tex fonts and style)

(%i3) expand((x-3/2)^2+3/4)

(%o3) x^2 -3x+3 (in the nice tex fonts and style)

(%i4)

Now go back to the first input line again and change the function to
f(x):=(x-3/2)^2+3/4 and you get:

Maxima restarted.
(%i1) f(x):=(x-3/2)^2+3/4

(%i4) f(x):=x(x-3/2)^2+3/4 (in the nice tex fonts and style)

(%i5) expand((x-3/2)^2+3/4)

(%o3) x^2 -3x+3 (in the nice tex fonts and style)

(%i4)

Seems like a problem to me. :(
Also, when you edit an existing input cell the input label remains the
same so if you now edit %i1 back to the original definition without
running it you have:

Maxima restarted.
(%i1) f(x):=x^2-3*x+3

(%i4) f(x):=x(x-3/2)^2+3/4 (in the nice tex fonts and style)

(%i5) expand((x-3/2)^2+3/4)

(%o3) x^2 -3x+3 (in the nice tex fonts and style)

(%i4)

Which also looks even more odd. You might object that this never happens
because you run the cell anyway. Unfortunately it does happen more often
than I care to admit in the lab with 34 students (first time users of
TeXmacs and Maxima) attempting to complete a lab.

Any suggestions? Bob
--
Dr. Robert J. Jerrard, Professor of Mathematics,
Concordia University College of Alberta,
7128 Ada Blvd., Edmonton, Alberta, T5B 4E4, Canada.
Phone: (780) 479-9291, Fax: (780) 474-1933.



  • Maxima session input and output numbers within TeXmacs, bob, 09/28/2005

Archive powered by MHonArc 2.6.19.

Top of page