Julian Noble's FORmula TRANslator - New Version

This is a discussion on Julian Noble's FORmula TRANslator - New Version within the Forth forums in Programming Languages category; I have provided a new version of Julian V. Noble's ANS-compatible FORmula TRANslator. Here's what is new: **NEW** Now one can use fvalues and flocals and fconstants more easily: By using tick (') instead of quote(") to enclose the formula all variable names will be treated as values or locals including the assignment variable like 'a' below. f' a=b*c-3.17e-5/tanh(w)+abs(x)' b c F* .317000E-4 w FTANH F/ F- x FABS F+ to a ok **NEW** Now one can use integer formulae: i" a=b*c-5/sqrt(w)+abs(x)" b @ c @ * 5 w @ sqrt / - x @ abs + a ! **NEW** ...

Go Back   Application Development Forum > Programming Languages > Forth

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-05-2008, 10:13 PM
Doug Hoffman
Guest
 
Default Julian Noble's FORmula TRANslator - New Version

I have provided a new version of Julian V. Noble's ANS-compatible
FORmula TRANslator. Here's what is new:


**NEW**
Now one can use fvalues and flocals and fconstants more easily:
By using tick (') instead of quote(") to enclose the formula
all variable names will be treated as values or locals including
the assignment variable like 'a' below.

f' a=b*c-3.17e-5/tanh(w)+abs(x)'

b c F* .317000E-4 w FTANH F/ F-
x FABS F+ to a ok


**NEW**
Now one can use integer formulae:

i" a=b*c-5/sqrt(w)+abs(x)"

b @ c @ * 5 w @ sqrt / - x @ abs + a !


**NEW**
One can also use integer formulae with values and locals and constants:

i' a=b*c-5/sqrt(w)+abs(x)'

b c * 5 w sqrt / - x abs + to a



The file is located here:

http://members.talkamerica.net/dougl...lkamerica.net/

Download file fortran203.zip


-Doug
Reply With Quote
  #2  
Old 09-10-2008, 04:40 PM
Jerry Avins
Guest
 
Default Re: Julian Noble's FORmula TRANslator - New Version

Doug Hoffman wrote:
> I have provided a new version of Julian V. Noble's ANS-compatible
> FORmula TRANslator. Here's what is new:
>
>
> **NEW**
> Now one can use fvalues and flocals and fconstants more easily:
> By using tick (') instead of quote(") to enclose the formula
> all variable names will be treated as values or locals including
> the assignment variable like 'a' below.
>
> f' a=b*c-3.17e-5/tanh(w)+abs(x)'
>
> b c F* .317000E-4 w FTANH F/ F-
> x FABS F+ to a ok
>
>
> **NEW**
> Now one can use integer formulae:
>
> i" a=b*c-5/sqrt(w)+abs(x)"
>
> b @ c @ * 5 w @ sqrt / - x @ abs + a !
>
>
> **NEW**
> One can also use integer formulae with values and locals and constants:
>
> i' a=b*c-5/sqrt(w)+abs(x)'
>
> b c * 5 w sqrt / - x abs + to a
>
>
>
> The file is located here:
>
> http://members.talkamerica.net/dougl...lkamerica.net/
>
> Download file fortran203.zip


Thanks.

Jerry
--
Engineering is the art of making what you want from things you can get.
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
  #3  
Old 09-11-2008, 06:42 AM
Doug Hoffman
Guest
 
Default Re: Julian Noble's FORmula TRANslator - New Version

On Sep 10, 4:40*pm, Jerry Avins <j...@ieee.org> wrote:

> Thanks.


You're welcome. Though the real thanks goes to Julian, as I'm sure
you already know. Julian's very clear coding style made it rather
easy for me to add the extra functionality.

-Doug
Reply With Quote
  #4  
Old 09-12-2008, 08:25 PM
Doug Hoffman
Guest
 
Default Re: Julian Noble's FORmula TRANslator - New Version

I wrote:
> I have provided a new version of Julian V. Noble's ANS-compatible
> FORmula TRANslator.


> The file is located here:
>
> http://members.talkamerica.net/dougl...lkamerica.net/
>


Download file fortran203a.zip

The following definition was not correct. I show the correct version here:

: f^3 FDUP FDUP F* F* ;

The download file has been corrected.

Thanks to Alexander Seregin for finding this.

-Doug
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:30 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.