[fpc-pascal] Re: interested in building a library for functions?

2011-02-27 Thread Angel Montesinos
El 26/02/2011 16:27, Marco van de Voort escribió: I never really started it, but one of the things I noticed is that the CPU instructions for certain goniometric functions don't always accept the full domain. How have you dealt with that in your code generation (or am I wrong, it is over 7 years

Re: [fpc-pascal] Re: interested in building a library for functions?

2011-02-26 Thread Žilvinas Ledas
Hello, On 2011-02-26 14:12, Angel Montesinos wrote: An added difficulty that I have thumped with is that the debugger of fpc-Lazarus does not move, by pressing F7 I think this may be solved already in the latest Lazarus version: "Single Instruction step (over/into)" (http://wiki.lazarus.free

Re: [fpc-pascal] Re: interested in building a library for functions?

2011-02-26 Thread Marco van de Voort
In our previous episode, Angel Montesinos said: > > Have a look at FPC package symbolic. It sounds like roughly the same kind of > > soup. (parsing, differentiating, fast eval) > > Yes, roughly. Because if I have read it correctly, the package > evaluates things ultimately by calls to the system

Re: [fpc-pascal] Re: interested in building a library for functions?

2011-02-26 Thread Cees Binkhorst
And a few lines down in the stack of messages you say so yourselve '... at each step of the evaluation of the RPN it evaluates the ...' Is it then not easier to make a proper RPN-stack processor and feed the RPN-code into it? There are many versions already at http://www.hpcalc.org/hp48/pc/emulato

Re: [fpc-pascal] Re: interested in building a library for functions?

2011-02-26 Thread Cees Binkhorst
I downloaded the files from your website to have a look. My first thought was 'I am looking at a program written in Reverse Polish Notation that is literally translated into processor machinecode.' RPN is the 'native language' of Hewlett-Packard calculators. My second thought was that in order to

[fpc-pascal] Re: interested in building a library for functions?

2011-02-26 Thread Angel Montesinos
I think the Superficies version 2 is newer and preferred for porting. The 3-D images are rotated nicely without OpenGL support. Good. I tried to convert it but there are 3rd party components which are not ported to Lazarus. Also, there are references to TBitmap.ScanLine which is not portable. The

[fpc-pascal] Re: interested in building a library for functions?

2011-02-26 Thread Angel Montesinos
El 25/02/2011 12:08, Marco van de Voort escribió: Have a look at FPC package symbolic. It sounds like roughly the same kind of soup. (parsing, differentiating, fast eval) Yes, roughly. Because if I have read it correctly, the package evaluates things ultimately by calls to the system functio