comp.lang.ada
 help / color / mirror / Atom feed
* Ann: symbolic multinomial algebra
@ 2004-05-31 22:56 tmoran
  2004-06-01  4:52 ` tmoran
  2004-06-02 22:53 ` Craig Carey
  0 siblings, 2 replies; 4+ messages in thread
From: tmoran @ 2004-05-31 22:56 UTC (permalink / raw)


I couldn't find a simple, easy to integrate, symbolic algebra
package, so I've posted one at http://home.comcast.net/~twmoran
The sample program includes the Knuth 2.2.4 example:
  type Vars is (x,y);
  function Image(Var : Vars) return String is ...
  package Polys is new Multinom(Vars, Image);
  use Polys;
  A : Polys.Multinomials
        := X**4 + 2.0*x**3*y**1 + 3.0*x**2*y**2 + 4.0*x**1*y**3 + 5.0*y**4;
  B : Polys.Multinomials := x**2 - 2.0*x**1*y**1 + y**2;
  ...
  Put_Line("Product is " & Image(A*B));



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-06-03 11:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-31 22:56 Ann: symbolic multinomial algebra tmoran
2004-06-01  4:52 ` tmoran
2004-06-02 22:53 ` Craig Carey
2004-06-03 11:33   ` Craig Carey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox