~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to docs/mathex/ex41.pp

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Program Example41;
2
 
 
3
 
{ Program to demonstrate the sincos function. }
4
 
 
5
 
Uses math;
6
 
 
7
 
Procedure dosincos(Angle : Float);
8
 
 
9
 
Var
10
 
  Sine,Cosine : Float;
11
 
 
12
 
begin
13
 
  sincos(angle,sine,cosine);
14
 
  Write('Angle : ',Angle:8:6);
15
 
  Write(' Sine :',sine:8:6);
16
 
  Write(' Cosine :',cosine:8:6);
17
 
end;
18
 
 
19
 
begin
20
 
  dosincos(pi);
21
 
  dosincos(pi/2);
22
 
  dosincos(pi/3);
23
 
  dosincos(pi/4);
24
 
  dosincos(pi/6);
25
 
end.