]> www.ginac.de Git - ginac.git/commit - ginsh/ginsh_parser.yy
- expressions can now be read from streams; the input expression can contain
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 29 Mar 2000 20:20:12 +0000 (20:20 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 29 Mar 2000 20:20:12 +0000 (20:20 +0000)
commit956a3ad3779759028bfd742456ed9eafc3e85063
tree626e12da9fd79b7df37856e8c2df85d8f49e4a8c
parent79eebbd4ebb7b5f7c6517298c728a16a68282ace
- expressions can now be read from streams; the input expression can contain
  a list of predefined symbols to be used, before reading (and overwriting)
  the expression, e.g:
    symbol x("x"), y("y");
    e = lst(x, y);
    cout << "Enter an expression containing 'x' and 'y': ";
    try {
        cin >> e;
    } catch (exception &e) {
        cerr << e.what() << endl;
    }
    cout << "You entered " << e << endl;
    cout << "de/dx = " << e.diff(x) << endl;
    cout << "de/dy = " << e.diff(y) << endl;
22 files changed:
Makefile.in
aclocal.m4
check/Makefile.in
cint/Makefile.in
configure
doc/Makefile.in
doc/reference/Makefile.in
doc/tutorial/Makefile.in
ginac/Makefile.am
ginac/Makefile.in
ginac/function.pl
ginac/input_lexer.h [new file with mode: 0644]
ginac/input_lexer.ll [new file with mode: 0644]
ginac/input_parser.yy [new file with mode: 0644]
ginac/matrix.cpp
ginac/matrix.h
ginac/operators.cpp
ginac/version.h [new file with mode: 0644]
ginsh/Makefile.in
ginsh/ginsh_lexer.ll
ginsh/ginsh_parser.yy
tools/Makefile.in