This wiki is out of date, use the continuation of this wiki instead

Pow

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 14:33, 27 May 2007 (edit)
Sandman (Talk | contribs)

← Previous diff
Current revision (16:00, 1 March 2008) (edit) (undo)
Sandman (Talk | contribs)
m (Example)
 
(2 intermediate revisions not shown.)
Line 22: Line 22:
Global Global
float value1; float value1;
- int value2;+ int value2;
Begin Begin
write_float(0,0, 0,0,&value1); write_float(0,0, 0,0,&value1);
- write_int(0,0,10,0,&value2);+ write_int (0,0,10,0,&value2);
value1 = pow(2.3,4.6); value1 = pow(2.3,4.6);
- value2 = pow(2,3);+ value2 = pow(2 ,3 );
Repeat Repeat
frame; frame;
- Until(key(_esc))+ Until(key(_ESC))
End End
</pre> </pre>
-Used in example: [[write_float]](), [[write_int]](), [[key]]()+Used in example: [[write_float]](), [[write_int]](), [[pow]](), [[key]]()
 + 
 +{{Funcbox
 + | category = Math
 +}}

Current revision


Contents

[edit] Definition

FLOAT pow ( <FLOAT base> , <FLOAT power> )

Returns base to the power of power (base^power).

[edit] Parameters

FLOAT base - The base.
FLOAT power - The power.

[edit] Returns

FLOAT : base to the power of power (base^power).

[edit] Example

Program powerful;
Global
    float value1;
    int   value2;
Begin

    write_float(0,0, 0,0,&value1);
    write_int  (0,0,10,0,&value2);

    value1 = pow(2.3,4.6);
    value2 = pow(2  ,3  );

    Repeat
        frame;
    Until(key(_ESC))

End

Used in example: write_float(), write_int(), pow(), key()


Math Functions
Abs() • Acos() • Asin() • Atan() • Cos() • Fget_angle() • Fget_dist() • Get_distx() • Get_disty() • Pow() • Rand() • Rand_seed() • Sin() • Sqrt() • Tan() •
Personal tools