Hi Narcis,
I would build a program in delphi with TeeChart so that the user can enter the aquatic function and click on a display its image.
How will introduce the equation y:= f (x) in the code of the event
TForm1.TeeFunction1Calculate (Sender: TCustomTeeFunction;
CONST x: Double; VAR y: Double);
knowing it will be in the form of text there 'y:= f (x) '?
thank you for your help
Didier
custom function
-
- Newbie
- Posts: 42
- Joined: Mon Jun 11, 2007 12:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Didier,
You can use StrToFloat method for that, for example:
You can use StrToFloat method for that, for example:
Code: Select all
procedure TCustomFunctionDemo.TeeFunction1Calculate(Sender: TCustomTeeFunction;
const x: Double; var y: Double);
begin
y:=StrToFloat('Sin(x/10)');
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 42
- Joined: Mon Jun 11, 2007 12:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Didier,
You can try refreshing function's series datasource, for example:
You can try refreshing function's series datasource, for example:
Code: Select all
Series2.CheckDataSource;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |