Re: [BLACKBOX] CONSTant expressions

From: [at]} <Rex>
Date: Thu, 17 Jan 2008 10:24:31 -0600

----boundary-LibPST-iamunique-1694602628_-_-
Content-type: text/plain

At 05:52 AM 1/17/2008, Robert Campbell wrote:
>I think that the compiler is overly strict in forbidding:
>
>CONST
> a = 1.;
> b = 1.;
> c = 2.;
> d = c / (a - b);
>
>
>In a language that supports INF why is division by 0
>SOMETIMES forbidden?
>
>(I was working out the Tangent of 90 degrees, and INF is
>a perfectly reasonable value.)

        Interesting. Mathematically, INF is not a number, and therefore not a reasonable value.

        Computationally a great convenience at times, nevertheless, although hard to use in subsequent calculations. There's a scientific dialect of Oberon, and I'd be curious what that does. I would test with Fortran, but at the moment my computer is torn apart.

Best wishes,

Rex Couture, Ph. D.
Dept. of Earth and Planetary Sciences
Campus Box 1169
Washington University in St. Louis
1 Brookings Dr.
St. Louis MO 63130

Voice: (314) 935-4194
Fax: (314) 935-7361
rex{([at]})nowhere.xy


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1694602628_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEF0IDA1OjUyIEFNIDEvMTcvMjAwOCwgUm9iZXJ0
IENhbXBiZWxsIHdyb3RlOlxw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Bc
cGFyDQpccGFyDQpSZXggQ291dHVyZSwgUGguIEQuXHBhcg0KRGVwdC4gb2YgRWFydGggYW5kIFBs
YW5ldGFyeSBTY2llbmNlc1xwYXINCkNhbXB1cyBCb3ggMTE2OVxwYXINCldhc2hpbmd0b24gVW5p
dmVyc2l0eSBpbiBTdC4gTG91aXNccGFyDQoxIEJyb29raW5ncyBEci5ccGFyDQpTdC4gTG91aXMg
TU8gNjMxMzBccGFyDQpccGFyDQpWb2ljZTogICgzMTQpIDkzNS00MTk0XHBhcg0KRmF4OiAgKDMx
NCkgOTM1LTczNjFccGFyDQpyZXhAbGV2ZWUud3VzdGwuZWR1XHBhcg0KXHBhcg0KXHBhcg0KLS0t
LVxwYXINClRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYg
QkxBQ0tCT1giIHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSH19AC/hggE=
----boundary-LibPST-iamunique-1694602628_-_---
Received on Thu Jan 17 2008 - 17:24:31 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:10 UTC