🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.oberon
Article #1255

Re: Why no Complex Arithmetic ?

#1255
From: Jean-Pierre Weber
Date: Tue, 02 Apr 1996 13:01
34 lines
1839 bytes
>Richard Pitre (pitre@n5160d.nrl.navy.mil) wrote:
>> Why leave out complex numbers and complex
>> transcendental functions? 
>
>For a very simple reason: there are two equally viable implementations
>Do you want an angle/radius or real/imaginary representation?
>Please consider the consequences of a choice. If you don't show 
>(explicit) what choice you made, you won't have any idea of the 
>run-time consequences of what you write.
>
>Stephan
>
>> If you don't think its a problem then its because you've never tried
>> to do it. The readability goes to hell. 
>
>If you think it is a problem you have never tried it ;-)
>

I have done it in C. Doing it in Oberon(-2) would be the same, maybe worse
since you cannot return records in Oberon and would have to use pointers.
And readability goes to hell. It is a major pain in the ass.

J.-P.

---

===========================================================================
| Jean-Pierre Weber                                              | We  do |
| Fiber Optics Research Center | Phone:  +46 8 757 4513          |    \|/ |
| Ericsson Components AB       | Fax:    +46 8 757 4764          | ----O- |
| KI/EKA/N/SF                  | e-mail: ekajewe@eka.ericsson.se |    /|\ |
| S-164 81 KISTA , SWEDEN      | MEMO:   ERI.EKA.EKAJEWE         | lasers |
===========================================================================
Technical Details
Message-ID: <4jr8g5$1hn@erinews.ericsson.se>
Path: arc1-ca.pugleaf.net!erinews.ericsson.se!usenet
References: <4jqvad$eh8@toad.stack.urc.tue.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!erinews.ericsson.se!usenet
From: ekajewe@eka.ericsson.se (Jean-Pierre Weber)
Newsgroups: comp.lang.oberon
Subject: Re: Why no Complex Arithmetic ?
Date: 2 Apr 1996 13:01:57 GMT
Organization: Ericsson Components AB
Distribution: world
Message-ID: <4jr8g5$1hn@erinews.ericsson.se>
References: <4jqvad$eh8@toad.stack.urc.tue.nl>
Reply-To: ekajewe@eka.ericsson.se
NNTP-Posting-Host: forc12.eka.ericsson.se