Re: $include to read maple procedures from txt files

From: Robert Israel (israel_at_math.ubc.ca)
Date: 07/14/04

  • Next message: Narasimham G.L.: "Re: EINSTEIN AND MATHEMATICA? WHAT WOULD IT MEAN?"
    Date: 14 Jul 2004 15:43:49 GMT
    
    

    In article <invhlvr46b47@legacy>, Christian <mbacm@web.de> wrote:

    >I'm Maple 8 and trying to use the $include command of maple in the
    >"command line version" to read procedures from a txt-files. My
    >intention is to save these procedures afterwards in a module-based
    >package. The result of the "$include" should be the same as if I use
    >the "read" command in the "graphical maple version".

    >My problem is, that I don't know how to use the $include command for
    >this purpose. The online help only provides little information about
    >this. I tried:

    >From the help page ?preprocessor:

     IMPORTANT: The preprocessor works only on files being read from the
     standard input stream (that is, input redirected into the command-line
     version of Maple by the "<" or "|" facilities provided by UNIX and
     Windows shells). The preprocessor is not available in graphical interface
     versions of Maple, nor is it available when input is typed on the Maple
     command line.

    >> $include "C:/temp/myfile.txt"

    >but this does not work. It seems to me that the command lind expects
    >further commands.

    It sounds like you're trying to use this from the Maple command line,
    which the help file says doesn't work. If you're not using redirection,
    i.e. you're not invoking Maple with a line such as

       maple < myinput.txt

    then you shouldn't be using $include. Instead, use "read", just as
    you would in a graphical interface.

    Robert Israel israel@math.ubc.ca
    Department of Mathematics http://www.math.ubc.ca/~israel
    University of British Columbia
    Vancouver, BC, Canada V6T 1Z2
     


  • Next message: Narasimham G.L.: "Re: EINSTEIN AND MATHEMATICA? WHAT WOULD IT MEAN?"

    Relevant Pages

    • $include to read maple procedures from txt files
      ... I'm Maple 8 and trying to use the $include command of maple in the ... intention is to save these procedures afterwards in a module-based ... The online help only provides little information about ...
      (sci.math.symbolic)
    • Re: How to extract the polynomial from the maple s
      ... Thanks for the information about accessing the maple manuel. ... The maple command 'series' outputs a fomat that I'm having ... For individual coefficients the command ... I'm operating on a Linux Debian platform using Matlab ...
      (comp.soft-sys.matlab)
    • Re: MatLab Display
      ... the input and especially the output display of computations. ... command line only, and the 'pretty' command for output display, while ... Other programs, like Maple, not only display output ... The best material model of a cat is another, or preferably the same, cat. ...
      (comp.soft-sys.matlab)
    • Not available in Maple 9 anymore: save all variables once
      ... In the old versions of Maple, the command ... I mean, if I have a symbol or string with a maple command, is it ... possible to make Maple interpret such string and execute ...
      (sci.math.symbolic)
    • Command line Maple vs GUI
      ... I assume Maple is using some numeric solver ... Within the maple GUI, ... Is there a computational advantage to running a script in command ...
      (sci.math.symbolic)