Learn R Programming

RSpincalc (version 1.0.2)

Qzero: Generate zero-valued quaternions

Description

Qzero generates zero-valued quaternions. Qone generates one-valued quaternions.

Usage

Qzero(n=NA)

Arguments

n
Optional integer for the number of generated quaternions, default = 1.

Value

Q
Zero or one-valued quaternion (Q) vector [q1, q2, q3, q4] or matrix n x 4.

Examples

Run this code
Qzero()
Qzero(5)
Qone()
Qone(5)

Run the code above in your browser using DataLab