MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

data structure / object

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16293] data structure / object
  • From: "schatzi" <antoine.zahnd at iprolink.ch>
  • Date: Sun, 7 Mar 1999 01:05:30 -0500
  • Organization: Internet Prolink SA Customer
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,

I would to do the following with Mathematica 3.0 :

Define a data structure, fot example point[x,y], and then overload
operators,
and in particular the output operator.

That is to say to be able to write
p=point[1,2];q=point[-1,3];r=p+q
pt[0,5]

Thank you very much for your solutions, (and pointers to books/references).


antoine.zahnd at iprolink.ch


  • Prev by Date: Re: Sound with Mathematica
  • Next by Date: water simulation possible?
  • Previous by thread: Re: Reset In[ ] & Out[ ]
  • Next by thread: Re: data structure / object