Remove real type

Walter Bright newshound1 at digitalmars.com
Sat Apr 24 14:47:27 PDT 2010


strtr wrote:
> Walter Bright Wrote:
>> You've got a bad algorithm if increasing the precision breaks it.
> No, I don't. All algorithms using threshold functions which have been
> generated using evolutionary algorithms will break by changing the precision.
> That is, you will need to retrain them. The point of most of these
> algorithms(eg. neural networks) is that you don't know what is happening in
> it.


You're going to have nothing but trouble with such a program. It won't be 
portable even on Java, and it may also exhibit different behavior based on 
compiler switch settings.

It's like relying on the lense in your camera to be of poor quality. Can you 
imagine going to the camera store and saying "I don't want the newer, high 
quality lenses, I want your old fuzzy one!" ?

I suggest instead using fixed point arithmetic with a 64 bit integer type.



More information about the Digitalmars-d mailing list