Number:
Filter:
Classes | Math

Number : Magnitude : Object

Mathematical quantity
Source: Number.sc

Description

Number represents a mathematical quantity.

Class Methods

Inherited class methods

Undocumented class methods

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

From extension in /Library/Application Support/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

@(aValue)

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extNumber.sc

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.

@(aValue)

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extNumber.sc

If aValue is Number, create a new Point whose x coordinate is the receiver and whose y coordinate is Number. If aValue is a Point, create a new Cartesian whose x coordinate is the receiver, y coordinate is aValue.x and z coordinate is aValue.y.

Arguments:

aValue

.spherical(theta, phi)

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extNumber.sc

Create a new Spherical number whose radius is the receiver with the given angles.

Arguments:

theta

azimuth angle

phi

elevation 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.

Spherical Coordinate Support

.rho

Answer the spherical radius of the number.

.theta

Answer the spherical azimuth angle of the number.

.phi

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extNumber.sc

Answer the spherical elevation angle of the number.

Inherited instance methods

Undocumented instance methods

.asLayoutElement

From extension in /SuperCollider/Contents/Resources/SCClassLibrary/Common/GUI/Base/ext-asLayoutElement.sc

.asSMPTE(fps, type)

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SMPTE/extVarious-asSMPTE.sc

.asSizedString(size: 2, keepWidth: false)

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SMPTE/extVarious-asSMPTE.sc

.celcius2farenheit

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

.celcius2kelvin

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

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

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extUgen-fadein.sc

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

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extUgen-fadein.sc

.digit2roman

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/digit2roman.sc

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

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extUgen-fadein.sc

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

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extUgen-fadein.sc

.farenheit2celcius

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

.farenheit2kelvin

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

.half

From extension in /SuperCollider/Contents/Resources/SCClassLibrary/DefaultLibrary/extNumber.sc

.isNumber

.kelvin2celcius

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

.kelvin2farenheit

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extNumber-speedOfSound.sc

.mod(aNumber)

.nCk(k)

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/MathLib/classes/Polynomials/Polynomial.sc

.performBinaryOpOnCartesian(op, aCartesian, adverb)

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extNumber.sc

.performBinaryOpOnPoint(op, aPoint, adverb)

.performBinaryOpOnSeqColl(aSelector, aSeqColl, adverb)

.pow(aNumber)

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

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extUgen-fadein.sc

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

From extension in /Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extUgen-fadein.sc

.twice

From extension in /SuperCollider/Contents/Resources/SCClassLibrary/DefaultLibrary/extNumber.sc