/[ascend]/trunk/models/johnpye/testlog10.a4c
ViewVC logotype

Contents of /trunk/models/johnpye/testlog10.a4c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 123 - (show annotations) (download) (as text)
Mon Dec 19 06:59:40 2005 UTC (13 years, 11 months ago) by johnpye
File MIME type: text/x-ascend
File size: 382 byte(s)
Changing 'log' function to 'log10'
1 REQUIRE "atoms.a4l";
2
3 MODEL testlog10;
4
5 x IS_A solver_var;
6 y IS_A solver_var;
7 z IS_A solver_var;
8
9 log_10_expr: y = log10(x);
10 log_e_expr: z = ln(x);
11
12 METHODS
13 METHOD specify;
14 x.fixed := TRUE;
15 END specify;
16 METHOD values;
17 x := 10 {1};
18 END values;
19 METHOD default_self;
20 RUN reset;
21 RUN values;
22 END default_self;
23 METHOD self_test;
24 RUN default_self;
25 END self_test;
26
27 END testlog10;

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22