Handling complex arithmetic formulas can become a source of errors in
FORTH. Here, we will define the way to handle large formulas in infix notation and compile them in postfix notation.
Marc Petremann <mpetremann93m@gmail.com> writes:
Handling complex arithmetic formulas can become a source of errors in
FORTH. Here, we will define the way to handle large formulas in infix
notation and compile them in postfix notation.
Does your Forth have local variables? That helps a lot. I think people
who want infix aren't likely to use Forth in the first place.
Does your Forth have local variables? That helps a lot. I think people
who want infix aren't likely to use Forth in the first place.
In article <87pmemf0bp.fsf@nightsong.com>,
Paul Rubin <no.email@nospam.invalid> wrote:
Marc Petremann <mpetremann93m@gmail.com> writes:
Handling complex arithmetic formulas can become a source of errors in
FORTH. Here, we will define the way to handle large formulas in infix
notation and compile them in postfix notation.
Does your Forth have local variables? That helps a lot. I think people
who want infix aren't likely to use Forth in the first place.
Prof Noble was right. There is great merit in being able to copy
checking complex formulae from textbooks verbatim.
Probably most notable in a practical technical environment.
Prof Noble was right. There is great merit in being able to copyThere certainly is. 4tH supports such expansion in its preprocessor, using
checking complex formulae from textbooks verbatim.
Probably most notable in a practical technical environment.
On Friday, October 21, 2022 at 12:18:26 PM UTC+2, none albert wrote:
Prof Noble was right. There is great merit in being able to copyThere certainly is. 4tH supports such expansion in its preprocessor, using the LET command.
checking complex formulae from textbooks verbatim.
Probably most notable in a practical technical environment.
When I tried to convert the famous "batman" equation into 4tH, it most certainly was helpful, since they are *godawful*!
What can I say - it worked ;-) https://sourceforge.net/p/forth-4th/code/HEAD/tree/trunk/4th.src/4pp/gbatman.4pp
I wish I'd had such functionality when coding the 'teonw' program. All those formulas
had to be handcoded. https://sourceforge.net/p/forth-4th/code/HEAD/tree/trunk/4th.src/4pp/teonw.4pp
Hans Bezemer
On Monday, October 24, 2022 at 9:47:04 AM UTC+2, the.bee...@gmail.com wrote:
On Friday, October 21, 2022 at 12:18:26 PM UTC+2, none albert wrote:
Prof Noble was right. There is great merit in being able to copyThere certainly is. 4tH supports such expansion in its preprocessor, using >> the LET command.
checking complex formulae from textbooks verbatim.
Probably most notable in a practical technical environment.
When I tried to convert the famous "batman" equation into 4tH, it most
certainly was helpful, since they are *godawful*!
What can I say - it worked ;-)
https://sourceforge.net/p/forth-4th/code/HEAD/tree/trunk/4th.src/4pp/gbatman.4pp
I wish I'd had such functionality when coding the 'teonw' program. All those formulas
had to be handcoded.
https://sourceforge.net/p/forth-4th/code/HEAD/tree/trunk/4th.src/4pp/teonw.4pp
Hans Bezemer
I need some motivation: what does 'batman' actually do?
I need some motivation: what does 'batman' actually do?It's a set of equations that plot the "batman" logo. Google "batman equation" and a lot of links will pop up.
It's a set of equations that plot the "batman" logo. Google "batman equation" and a lot of links will pop up.
Hans Bezemer <the.beez.speaks@gmail.com> writes:
It's a set of equations that plot the "batman" logo. Google "batman equation"
and a lot of links will pop up.
Heh cute. This one is informative: https://math.stackexchange.com/q/54506
On 26/10/2022 8:49 am, Paul Rubin wrote:
One for the mathematicians...
On Wednesday, October 26, 2022 at 3:16:11 AM UTC+2, dxforth wrote:
One for the mathematicians...
.. and the 4tH version. This one fills it up as well. Nice code, easy to port:
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 475 |
Nodes: | 16 (2 / 14) |
Uptime: | 18:41:04 |
Calls: | 9,487 |
Calls today: | 6 |
Files: | 13,617 |
Messages: | 6,121,092 |