Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.maple > #867

Re: How to use ** instead of ^

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Joe Riel <joer@san.rr.com>
Newsgroups comp.soft-sys.math.maple
Subject Re: How to use ** instead of ^
Date Sun, 02 Mar 2014 14:33:29 -0800
Organization A noiseless patient Spider
Lines 18
Message-ID <87vbvwteme.fsf@san.rr.com> (permalink)
References <Q8idnVbCl8bENI7OnZ2dnUVZ_uWdnZ2d@megapath.net>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Injection-Info mx05.eternal-september.org; posting-host="15591ad2607da309a0d1a78a1d632bc7"; logging-data="3424"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fOGMQuLw4fbYtUPVItlOT"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Cancel-Lock sha1:FMSfBzWyhwDpoEoc+mlXClnflMs= sha1:HZHNkhCnXK5dryVqTzlNCXWVbX4=
Xref csiph.com comp.soft-sys.math.maple:867

Show key headers only | View raw


"Thomas D. Dean" <tomdean@speakeasy.org> writes:

> I interface command line maple to gnuplot.
>
>> sprintf("%a",x**2+b*x+c);
>   "x^2+b*x+c"
>
> To gnuplot, ^ is xor.
>
> How may I do this?

Crude, but workable here, is,

str := sprintf("%a",x**2+b*x+c):
StringTools:-SubstituteAll( str, "^", "**");

-- 
Joe Riel

Back to comp.soft-sys.math.maple | Previous | NextPrevious in thread | Find similar


Thread

How to use ** instead of ^ "Thomas D. Dean" <tomdean@speakeasy.org> - 2014-03-02 13:57 -0800
  Re: How to use ** instead of ^ Joe Riel <joer@san.rr.com> - 2014-03-02 14:33 -0800

csiph-web