#49 Problems with user input

closed
nobody
None
5
2004-10-13
2002-04-26
Anonymous
No

---------------------------------------------
Some remarks on User-input of GPL Maxima/Win. (W.
Lindner)
---------------------------------------------

Problems with TSETUP(), METRIC(), ENTERTENSOR(),
TTRANSFORM() etc.:

1.
Studying a Log session of Valerij Pipin,
the following behaviour seems intended:

(C16) PRINT( Please input tensor name and others,like,
name : A;
covariant indices: [I,J];
contravariant indices: K;
derivative indices: [];, ENTERTENSOR())
Enter tensor name: A;
Enter a list of the covariant indices: [I,J];
Enter a list of the contravariant indices: K;
Enter a list of the derivative indices: [];
K
(D16) A
I/J
Please input tensor name and others,like,
name : A;
covariant indices: [I,J];
contravariant indices: K;
derivative indices: []; A([I, J], [K])

2.
BUT actually it goes like this:

(C16) PRINT( Please input tensor name and others,like,
name : A;
covariant indices:
contravariant indices:
derivative indices: , ENTERTENSOR())
A;
[I,J]; K; [];Enter tensor name: Enter a list of the
covariant indices: Enter a
list of the contravariant indices: Enter a list of the
derivative indices:
K
(D16) A
I J
Please input tensor name and others,like,
name : A;
covariant indices: [I,J];
contravariant indices: K;
derivative indices: []; A([I, J], [K])

3. To sum up,

a. ENTERTENSOR() does not make an dialog with the
user, but is SEEMS
hanging in a loop. Giving the input 'A; [I,J]; K; [];'
nevertheless at demo
prompt _; (bug in maximal help page: space don't work -
use _; !), the input is
taken correctly by ENTERTENSOR, and AT THE END all
dialog text is shipped out,
what makes now no sense, see above.

b.
Similar behavier found in METRIC(), TTRANSFORM(),
TSETUP():
After input METRIC()$, the system seems hanging;
giving y; (for YES), the output comes with user
query appended
(! instead of coming first).

--
OStR Wolfgang Lindner Tel : +49
(0203) 379-1326
Gerhard-Mercator-Universität Duisburg Fax : +49
(0203) 379-2528
Fakultät 4 - Naturwissenschaften eMail:
Lindner@math.uni-duisburg.de
Institut fuer Mathematik, LE 424
Lotharstr. 65
D 47048 Duisburg (Germany)

Discussion

  • Firmin Joseph Oliveira

    Logged In: YES
    user_id=961659

    Maxima version: 5.9.0
    Maxima build date: 13:50 4/15/2003
    host type: i686-pc-linux-gnu
    lisp-implementation-type: CMU Common Lisp
    lisp-implementation-version: 18e

    Problem with CTENSR package:
    TSETUP();

    I did not get any prompting for input (such as "Enter the
    dimension...",
    or "Do you wish to change the coordinate names?", etc.
    However I was able to get things to work by entering the
    expected input information along with a carriage return
    after each input item. For example, what worked was the
    following:
    tsetup();<cr>4;<cr>[r,h,p,t];<cr>1;<cr>1;<cr>A;<cr>r^2;<cr>r^2*sin(h)^2;<cr>-D;<cr>depends([A,D],r);<cr>y;<cr>y;<cr>

    after which the metric tensor and it's inverse were
    displayed and I could proceed. Upon initial start up of
    'xmaxima-local'
    the following error messages were reported:
    -----------------------------------------------------------------------------------------------------------
    maia:maxima-5.9.0> Maxima 5.9.0 http://maxima.sourceforge.net
    Distributed under the GNU Public License. See the file COPYING.
    Dedicated to the memory of William Schelter.
    This is a development version of Maxima. The function
    bug_report()
    provides bug reporting information.
    (C1) ;

    ; Warning: These variables are undefined:
    ; *SOCKET-CONNECTION* ME
    ; ;

    ; Warning: These functions are undefined:
    ; HOSTENT-NAME RESOLVE-HOST-IPADDR

    maia:maxima-5.9.0>
    -----------------------------------------------------------------------------------------------------------

    User comment: it may be that the problem is with the socket
    errors above?

     
  • Viktor Toth

    Viktor Toth - 2004-10-13
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks