help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [calc] routine tasks in batch mode


From: Pascal J. Bourguignon
Subject: Re: [calc] routine tasks in batch mode
Date: Wed, 08 Dec 2010 15:15:51 -0000
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/23.2 (gnu/linux)

Giacomo Boffi <giacomo.boffi@polimi.it> writes:

> pjb@informatimago.com (Pascal J. Bourguignon) writes:
>
>> But given that the purpose of calc is basically a four-operation
>> calculator [...]
>
> you are talking of M-x calculator RET, i'm talking of M-x calc RET,
> let's try to reach an agreement on the object of the discussion :-)

Perhaps as a mid point M-x calcul RET ?  ;-)


>> It might be hard to give an example of an interactive program used
>> in batch...
>
> i use routinely calc to do different tasks, mostly leveraging its
> symbolic algebra abilities
>
> some of these tasks are suspiciously similar to each other, so i
> thought that i can write some support elisp that, e.g., from a file
> that contains an high level description of a problem can produce a
> file with the problem solution, using in the intermediate steps the
> algebraic abilities of calc
>
> in the fine calc's manual i've found examples of writing and saving
> keyboard macros that contain conditionals, loops and user input, and
> a description of its elisp API
>
> clearly i have not understood the whole stuff and for starting i'd
> like to read some examples of elisp programs, batch oriented or not,
> that use calc elisp API do do their stuff (if such examples exist, of
> course: in my OP i said that i was not able to find any on the web)
>
> i hope that this time i made more clear my question, should this be
> the case thank you Pascal for giving me the opportunity of being more
> explicit

Actually, I understood M-x calc RET; where I may have misunderstood
you is when you mentionned 'batch'. I thought about: emacs -batch

I wasn't aware it was a symbolic calculator too.  This means the
hidden part of the iceberg is bigger than just its user interface and
makes it indeed worthwhile to try to call up from your own emacs lisp
code.


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]