Changeset 21675 in project


Ignore:
Timestamp:
11/26/10 12:23:33 (9 years ago)
Author:
petercrlane
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/quaternions

    r21665 r21675  
    2424<procedure>(real-part n)</procedure>
    2525Returns the real part of a number.
    26  > (real-part (make-rectangular 1 2 3 4)
     26 > (real-part (make-rectangular 1 2 3 4))
    2727 1
    2828
    2929<procedure>(imag-part n)</procedure>
    3030Returns the imaginary part (the {{i}}) of a complex or quaternion number.
    31  > (imag-part (make-rectangular 1 2 3 4)
     31 > (imag-part (make-rectangular 1 2 3 4))
    3232 2
    3333
    3434<procedure>(jmag-part n)</procedure>
    3535Returns the {{j}} part of a quaternion number.
    36  > (jmag-part (make-rectangular 1 2 3 4)
     36 > (jmag-part (make-rectangular 1 2 3 4))
    3737 3
    3838
    3939<procedure>(kmag-part n)</procedure>
    4040Returns the {{k}} part of a quaternion number.
    41  > (kmag-part (make-rectangular 1 2 3 4)
     41 > (kmag-part (make-rectangular 1 2 3 4))
    4242 4
    4343
Note: See TracChangeset for help on using the changeset viewer.