Number:
Filter:
Classes | Math

Number : Magnitude : Object

Mathematical quantity
Source: Number.sc
Subclasses: Complex, Polar, SimpleNumber

Description

Number represents a mathematical quantity.

Class Methods

Inherited class methods

Undocumented class methods

Number.speedOfSound(temp: 15, substance: 'air')

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

Instance Methods

Math

+(aNumber)

Addition.

-(aNumber)

Subtraction.

*(aNumber)

Multiplication.

/(aNumber)

Division.

.div(aNumber)

Integer division.

%(that)

From superclass: Object

Modulo.

**(that)

From superclass: Object

Exponentiation.

Polar Coordinate Support

.rho

Answer the polar radius of the number.

.theta

Answer the polar angle of the number.

Complex Number Support

.real

Answer the real part of the number.

.imag

Answer the imaginary part of the number.

Conversion

@(aNumber)

Create a new Point whose x coordinate is the receiver and whose y coordinate is aNumber.

.complex(imaginaryPart)

Create a new Complex number whose real part is the receiver with the given imaginary part.

.polar(angle)

Create a new Polar number whose radius is the receiver with the given angle.

Iteration

.for(endValue, function)

Calls function for numbers from this up to endval, inclusive, stepping each time by 1.

Arguments:

endValue

a Number.

function

a Function which is passed two arguments, the first which is an number from this to

(endval, and the second which is a number from zero to the number of iterations minus one.)

.forBy(endValue, stepValue, function)

Calls function for numbers from this up to endval stepping each time by step.

Arguments:

endValue

a Number.

stepValue

a Number.

function

a Function which is passed two arguments, the first which is an number from this to endval, and the second which is a number from zero to the number of iterations minus one.

.forSeries(second, last, function)

Calls function for numbers from this up to endval stepping each time by a step specified by second.

Arguments:

second

a Number.

last

a Number.

function

a Function which is passed two arguments, the first which is an number from this to endval, and the second which is a number from zero to the number of iterations minus one.

Inherited instance methods

Undocumented instance methods

.asLayoutElement

From extension in /usr/local/share/SuperCollider/SCClassLibrary/Common/GUI/Base/ext-asLayoutElement.sc

.asSMPTE(fps, type)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SMPTE/extVarious-asSMPTE.sc

.asSizedString(size: 2, keepWidth: false)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SMPTE/extVarious-asSMPTE.sc

.celcius2farenheit

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

.celcius2kelvin

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

.cosFadeIn(center: 0, range: 0.5, on: 0.25)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extUgen-fadein.sc

.cosFadeOut(center: 0, range: 0.5, silent: 0.25)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extUgen-fadein.sc

.digit2roman

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/digit2roman.sc

.fadeIn(center: 0, range: 0.5, on: 0.25)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extUgen-fadein.sc

.fadeOut(center: 0, range: 0.5, silent: 0.25)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extUgen-fadein.sc

.farenheit2celcius

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

.farenheit2kelvin

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

.half

From extension in /usr/local/share/SuperCollider/SCClassLibrary/DefaultLibrary/extNumber.sc

.isNumber

.kelvin2celcius

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

.kelvin2farenheit

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

.mod(aNumber)

.performBinaryOpOnPoint(op, aPoint, adverb)

.performBinaryOpOnSeqColl(aSelector, aSeqColl, adverb)

.pow(aNumber)

.sqrtFadeIn(center: 0, range: 0.5, silent: 0.25)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extUgen-fadein.sc

.sqrtFadeOut(center: 0, range: 0.5, silent: 0.25)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extUgen-fadein.sc

.twice

From extension in /usr/local/share/SuperCollider/SCClassLibrary/DefaultLibrary/extNumber.sc