- Subject: forint.sl -- beta version
- From: "Klaus Schmid" <klaus.schmid@xxxxxx>
- Date: Sun, 8 Sep 2002 01:45:46 +0200
forint.sl allows to write formulas (slang) in a text file and
to insert the results on certain places by calling an evaluation
function (forint).
A complete and very simple example:
a) Download forint.zip from http://home.wtal.de/klaus/jed/ ,
unzip and put it in your Jed library path.
b) In Jed, evalfile("forint.sl")
c) In an empty buffer, type two lines:
% test
a= 1+1 =;
d) M-x forint
Now the buffer looks like
% test
a= 1+1 = 2 ;
A more useful example (buffer already evaluated):
%-*- mode: slang; mode: fold; -*-
% example usage of forint.sl
% NB: use ' =' to indicate 'show current value'
{
Q= 6.25; l= 2.6; g= 9.8066; ny= 1E-6;
di= 0.54; da= 0.915;
A= pi/4 *( da^2 -di^2);
U= pi *( di +da);
dh= 4 *A /U = 0.322144 ;
v= Q/A = 14.5846 ;
Re= v *dh /ny = 4.69835e+006 ;
lamda= lamda_colwhi( Re, 0.1E-3/dh) = 0.0152055 ;
v = 14.5846 ; % no assignment but output
hv= lamda *l /dh *v^2/2/g = 1.33097 ;
}
% tables -- yet not perfect, but it works.
%table: k= (); Re= (); lamda_colwhi( Re, k/dh);
%-----------------
1E6 0.0 0.011645
1E6 0.1 0.215668
1E6 0.2 0.41554
%
time() = Sun Sep 08 00:29:22 2002 ;
%
As always, suggestions welcome.
Klaus
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2002 date index]
[2002 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]