unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: [calc] routine tasks in batch mode
Date: Fri, 25 Jun 2010 12:11:27 +0200	[thread overview]
Message-ID: <87sk4bmng0.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: 866317r7ax.fsf@aiuole.stru.polimi.it

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	other threads:[~2010-06-25 10:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-24 21:50 [calc] routine tasks in batch mode Giacomo Boffi
2010-06-24 23:13 ` Pascal J. Bourguignon
2010-06-25  5:48   ` Giacomo Boffi
2010-06-25 10:11     ` Pascal J. Bourguignon [this message]
2010-06-25 10:22       ` Marc Mientki
2010-06-25 10:44         ` Marc Mientki
2010-06-26  1:39       ` Eli Barzilay
2010-06-25 23:44     ` Jay Belanger
2010-06-29  9:49       ` Giacomo Boffi
2010-06-29 20:16         ` Andreas Politz
2010-06-25  9:02 ` Marc Mientki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sk4bmng0.fsf@kuiper.lan.informatimago.com \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).