[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-math] Axiom: Printing multiple variables in axiom.
From: |
Constantine Frangos |
Subject: |
Re: [Axiom-math] Axiom: Printing multiple variables in axiom. |
Date: |
Mon, 12 Nov 2007 23:06:13 +0200 |
On Monday 12 November 2007 08:45, you wrote:
> "Bill Page" <address@hidden> writes:
> > Why do you write 'unparse(y::INFORM)' ? Do you mean you literally want
> > to output a ' * ' character for multiplication? If so, I think there
> > must be a better way than this ...
>
> I guess that Constantine also wants 1-dimensional output. I.e., x^2 instead
> of
>
> 2
> x
>
> But I'm not sure.
Yes, that's correct. It would be helpful to obtain one-dimensional output
(ala Maxima with display2d : false) that can be pasted as is, in other axiom
functions, and run correctly.
>
> Of course, the real solution would be to overwrite the coercion to
> OutputForm in Expression. But that's probably too much to ask for from
> Constantine, and I don't have the time to play around with that.
>
> Constantine, I believe that mainly the trig functions get "funny" names.
> You could first get a string with
>
> str := unparse(y::INFORM)
>
> and then use
>
> pos := position("DCOS", str, 1)
> if pos > 0 then replace(str,pos..pos+3,"cos")
>
> to replace the names you dislike.
I was thinking of defining
DCOS(x) == cos(x)
DSIN(x) == sin(x)
etc.
Regards,
C. Frangos.
- [Axiom-math] Axiom: Printing multiple variables in axiom., Constantine Frangos, 2007/11/08
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Martin Rubey, 2007/11/09
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Constantine Frangos, 2007/11/10
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Martin Rubey, 2007/11/10
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Constantine Frangos, 2007/11/11
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Bill Page, 2007/11/11
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Martin Rubey, 2007/11/12
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom.,
Constantine Frangos <=
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Bill Page, 2007/11/12
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Bill Page, 2007/11/12
- [Axiom-math] Axiom: Printing multiple variables in axiom., Constantine Frangos, 2007/11/13
- [Axiom-math] Re: Axiom: Printing multiple variables in axiom., Bill Page, 2007/11/13
- [Axiom-math] Axiom: Installing Aldor, Constantine Frangos, 2007/11/13
- Re: [Axiom-math] Axiom: Installing Aldor, Ralf Hemmecke, 2007/11/13
- [Axiom-math] Aldor: Installing Aldor, Constantine Frangos, 2007/11/13
- Re: [Axiom-math] Aldor: Installing Aldor, Bill Page, 2007/11/13
- Re: [Axiom-math] Aldor: Installing Aldor, Ralf Hemmecke, 2007/11/14
- [Axiom-math] Aldor: Installing Aldor, Constantine Frangos, 2007/11/14