JLObjFloat32¶
jobject.spad line 321 [edit on github]
Convenience domain for Julia Float32, objects that are used within Julia, and not directly by the underlying FriCAS Common Lisp. It is not meant to be used directly, but rather, for returned value or function argument for example. Only basic arithmetic operations are supported.
- 0: %
from AbelianMonoid
- 1: %
from MagmaWithUnit
- *: (%, Integer) -> %
x*iis the multiplication ofxby an integer.- *: (Fraction Integer, %) -> %
from LeftModule Fraction Integer
- *: (Integer, %) -> %
from AbelianGroup
- *: (NMInteger, %) -> JLObject
from JLObjectRing
- *: (NonNegativeInteger, %) -> %
from AbelianMonoid
- *: (PositiveInteger, %) -> %
from AbelianSemiGroup
- +: (%, %) -> %
from AbelianSemiGroup
- -: % -> %
from AbelianGroup
- -: (%, %) -> %
from AbelianGroup
- /: (%, Integer) -> %
x/iis the division ofxby an integer.
- /: (Integer, %) -> %
i/xis the division of an integer byx.
- <=: (%, %) -> Boolean
from PartialOrder
- <: (%, %) -> Boolean
from PartialOrder
- >=: (%, %) -> Boolean
from PartialOrder
- >: (%, %) -> Boolean
from PartialOrder
- ^: (%, Fraction Integer) -> %
x^qis the exponentiation by a rational.- ^: (%, Integer) -> %
from DivisionRing
- ^: (%, NonNegativeInteger) -> %
from MagmaWithUnit
- ^: (%, PositiveInteger) -> %
from Magma
- annihilate?: (%, %) -> Boolean
from Rng
- antiCommutator: (%, %) -> %
- associates?: (%, %) -> Boolean
from EntireRing
- associator: (%, %, %) -> %
from NonAssociativeRng
- characteristic: () -> NonNegativeInteger
from NonAssociativeRing
- cis: % -> JLObjComplexF32
cis(x)returns exp(%i*x) computed efficiently.
- cispi: % -> JLObjComplexF32
cispi(x)returns cis(%pi*x) computed efficiently.
- coerce: % -> %
from Algebra %
- coerce: % -> JLObject
from JLObjectType
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- coerce: DoubleFloat -> %
coerce(x)returnsxas aJLObjFloat32(truncate it). Convenience function.
- coerce: Float -> %
coerce(x)returnsxas aJLObjFloat32(truncate it). Convenience function.- coerce: Fraction Integer -> %
- coerce: Integer -> %
from NonAssociativeRing
- commutator: (%, %) -> %
from NonAssociativeRng
- convert: % -> String
from ConvertibleTo String
- convert: Float -> %
convert(x)returnsxas aJLObjFloat32(truncate it).
- divide: (%, %) -> Record(quotient: %, remainder: %)
from EuclideanDomain
- euclideanSize: % -> NonNegativeInteger
from EuclideanDomain
- expressIdealMember: (List %, %) -> Union(List %, failed)
from PrincipalIdealDomain
- exquo: (%, %) -> Union(%, failed)
from EntireRing
- extendedEuclidean: (%, %) -> Record(coef1: %, coef2: %, generator: %)
from EuclideanDomain
- extendedEuclidean: (%, %, %) -> Union(Record(coef1: %, coef2: %), failed)
from EuclideanDomain
- gcdPolynomial: (SparseUnivariatePolynomial %, SparseUnivariatePolynomial %) -> SparseUnivariatePolynomial %
from GcdDomain
- inv: % -> %
from DivisionRing
- jfloat32: Float -> %
jfloat32(x)returnsxas aJLObjFloat32(truncate it).
- jfloat32: JLFloat32 -> %
jfloat32(x)returnsxas aJLObjFloat32(truncate it).
- jfloat32: String -> %
jfloat32(str) evaluatesstrin Julia and returns the JuliaFloat32object. For example: example{jfloat32(“sin(pi)”)} example{jfloat32(“0.7”)}
- jlAbout: % -> Void
from JLObjectType
- jlApply: (String, %) -> JLObject
from JLObjectType
- jlApply: (String, %, %) -> JLObject
from JLObjectType
- jlApply: (String, %, %, %) -> JLObject
from JLObjectType
- jlApply: (String, %, %, %, %) -> JLObject
from JLObjectType
- jlApply: (String, %, %, %, %, %) -> JLObject
from JLObjectType
- jlApprox?: (%, %) -> Boolean
jlApprox?(x,y)computes inexact equality comparison with default parameters. Two numbers compare equal if their relative distance or their absolute distance is within tolerance bounds.
- jlApprox?: (%, %, %) -> Boolean
jlApprox?(x,y,atol)computes inexact equality comparison with absolute toleranceatol. Two numbers compare equal if their relative distance or their absolute distance is within tolerance bounds.
- jlDisplay: % -> Void
from JLObjectType
- jlDump: JLObject -> Void
from JLObjectType
- jlF32CApply: (JLObjDynamicLinker, %) -> %
jlF32CApply(func,x)applies the function pointerfunctox. For example: example{libm:= jlDlOpen “libopenlibm”} example{squareRoot:=jlDlSym(libm,jsym(sqrtf))} example{jlF32CApply(squareRoot,jfloat32(2))}
- jlF32CApply: (JLObjDynamicLinker, %, %) -> %
jlF32CApply(func,x,y)applies the function pointerfunctoxandy. For example: example{libm:= jlDlOpen “libopenlibm”} example{power:=jlDlSym(libm,jsym(powf))} example{jlF32CApply(power,jfloat32(2),jfloat32(7))}
- jlF32CApply: (JLObjDynamicLinker, %, %, %) -> %
jlF32CApply(func,x,y,z)applies the function pointerfunctox,yandz.
- jlFieldNames: % -> JLObject
from JLObjectType
- jlGetField: (%, JLSymbol) -> JLObject
from JLObjectType
- jlGetProperty: (%, JLSymbol) -> JLObject
from JLObjectType
- jlId: % -> JLInt64
from JLObjectType
- jlObject: () -> String
from JLObjectType
- jlPropertyNames: % -> JLObject
from JLObjectType
- jlRef: % -> SExpression
from JLObjectType
- jlref: String -> %
from JLObjectType
- jlText: (%, String) -> List String
from JLObjectType
- jlType: % -> String
from JLObjectType
- latex: % -> String
from SetCategory
- lcmCoef: (%, %) -> Record(llcm_res: %, coeff1: %, coeff2: %)
from LeftOreRing
- leftPower: (%, NonNegativeInteger) -> %
from MagmaWithUnit
- leftPower: (%, PositiveInteger) -> %
from Magma
- leftRecip: % -> Union(%, failed)
from MagmaWithUnit
- max: (%, %) -> %
from OrderedSet
- min: (%, %) -> %
from OrderedSet
- multiEuclidean: (List %, %) -> Union(List %, failed)
from EuclideanDomain
- mutable?: % -> Boolean
from JLObjectType
- nothing?: % -> Boolean
from JLObjectType
- one?: % -> Boolean
from MagmaWithUnit
- opposite?: (%, %) -> Boolean
from AbelianMonoid
- plenaryPower: (%, PositiveInteger) -> %
from NonAssociativeAlgebra %
- principalIdeal: List % -> Record(coef: List %, generator: %)
from PrincipalIdealDomain
- quo: (%, %) -> %
from EuclideanDomain
- recip: % -> Union(%, failed)
from MagmaWithUnit
- rem: (%, %) -> %
from EuclideanDomain
- rightPower: (%, NonNegativeInteger) -> %
from MagmaWithUnit
- rightPower: (%, PositiveInteger) -> %
from Magma
- rightRecip: % -> Union(%, failed)
from MagmaWithUnit
- sample: %
from AbelianMonoid
- sizeLess?: (%, %) -> Boolean
from EuclideanDomain
- smaller?: (%, %) -> Boolean
from Comparable
- squareFree: % -> Factored %
- squareFreePart: % -> %
- subtractIfCan: (%, %) -> Union(%, failed)
- unit?: % -> Boolean
from EntireRing
- unitCanonical: % -> %
from EntireRing
- unitNormal: % -> Record(unit: %, canonical: %, associate: %)
from EntireRing
- zero?: % -> Boolean
from AbelianMonoid
Algebra %
BiModule(%, %)
BiModule(Fraction Integer, Fraction Integer)
Module %