From: "Martin Kola?ik" <martin@mii.cz>
Subject: RE: = or := in MP
Date: Fri, 13 Sep 2002 08:39:52 +0200 [thread overview]
Message-ID: <002e01c25af0$5d586440$2197fac3@mii.cz> (raw)
In-Reply-To: <001401c25ac7$982c5870$0200a8c0@MATTHEW>
Hello,
as far as I know MP uses := for setting value ("assign" statement), whereas
= for defining symbolic relationship between left and right side of =. Said
in other way, using = defines linear equation.
MP has internal mechanism to solve linear equations (and systems of linear
equations). So, if you write
a1+ b1 = 14
a1- b1 = -5
you immediately can use values of a1 and b1 without numerically defining
them.
And u = 2cm? This is a linear equation, where is nothing to solve.
Have a nice day,
Martin
--------
Martin Kolarik
Moravske Pristroje, a.s., Masarykova 1148, Zlin 76302
tel. +420(603)498498, fax +420(603)490803
web: http://www.mii.cz
--------
e-mail: kolarik@mii.cz
e-mail: kolarik@click.cz
tel. +420(603)535593
> -----Original Message-----
> From: owner-ntg-context@let.uu.nl [mailto:owner-ntg-context@let.uu.nl]On
> Behalf Of Matthew Huggett
> Sent: Friday, September 13, 2002 3:48 AM
> To: ntg-context@ntg.nl
> Subject: = or := in MP
>
>
> Hello:
>
> What exactly is the difference between using u = 2cm and u := 2cm ?
> If I have multiple figures in a file, and I re-define u with
> u=someValue in
> subsequent figures, MP often complains about the value being
> re-defined. If
> I use := there's no trouble. When is it correct to use = and when := ?
>
> By the way, is it o.k. to post MP questions here or should I be looking
> somewhere else?
>
> Thanks and Best Wishes,
>
> Matthew
>
>
next prev parent reply other threads:[~2002-09-13 6:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-13 1:48 Matthew Huggett
2002-09-13 6:39 ` Martin Kola?ik [this message]
2002-09-14 18:55 ` Hans Hagen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002e01c25af0$5d586440$2197fac3@mii.cz' \
--to=martin@mii.cz \
/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 NNTP newsgroup(s).