On Tue, 2007-05-01 at 19:24 -0700, Erick Tryzelaar wrote:

> Does this problem occur if we do proper conversions to and from polar 
> coordinates? Are polar coordinates uniformly better than cartesian? 

No, it depends what you're doing.

> If 
> so, could we just fix this by making the underlying system implemented 
> with them, and convenience functions to get the cartesian form?

Lets see what Chris comes up with .. this is quite a difficult area.

> Another idea is to have two distinct types with their own functions, a 
> pcomplex for polar, and a ccomplex for cartesian, and join the two via a 
> Complex typeclass to capture all the shared functions? It's a little 
> ugly though since they really are just two views of the same data.

Yes, that is indeed an idea, but the details will determine
how to proceed .. typeclasses are very 'generic' and the details
of most real systems are intricate and hard to abstract.



-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to