Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.maple > #867
| From | Joe Riel <joer@san.rr.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.maple |
| Subject | Re: How to use ** instead of ^ |
| Date | 2014-03-02 14:33 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <87vbvwteme.fsf@san.rr.com> (permalink) |
| References | <Q8idnVbCl8bENI7OnZ2dnUVZ_uWdnZ2d@megapath.net> |
"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 | Next — Previous in thread | Find similar
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