summaryrefslogtreecommitdiff
path: root/matheunit.pas
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2015-08-06 13:58:35 +0200
committerErich Eckner <git@eckner.net>2015-08-06 13:58:35 +0200
commitc6c5b7c628dc068544b4b9705c10985d98cf2fbf (patch)
treebab501a60c6a9cd30033eb9b126653835bc87a7d /matheunit.pas
parent99471aef938c37216d67122c48fdaebc2902af9d (diff)
downloadunits-c6c5b7c628dc068544b4b9705c10985d98cf2fbf.tar.xz
matheunit.pas: ln in exprtofloat eingefuegt
Diffstat (limited to 'matheunit.pas')
-rw-r--r--matheunit.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/matheunit.pas b/matheunit.pas
index 7fc3188..8e6426c 100644
--- a/matheunit.pas
+++ b/matheunit.pas
@@ -359,7 +359,7 @@ var i,j,k,l,m: longint;
inv,neg,cbv: boolean;
val1,val2: extended;
const
- fkt1: array[0..5] of string = ('exp','sin','cos','tan','sqr','sqrt');
+ fkt1: array[0..6] of string = ('exp','sin','cos','tan','sqr','sqrt','ln');
fkt2: array[0..1] of string = ('min','max');
begin
s:=trimAll(s);
@@ -387,6 +387,7 @@ begin
3: val1:=tan(val1);
4: val1:=sqr(val1);
5: val1:=sqrt(val1);
+ 6: val1:=ln(val1);
end{of case};
s:=copy(s,1,k-1) + floattostr(val1) + copy(s,j+1,length(s));
end;