IsGeneric
,
GenericTypeName
,
ArrayCreate
,
ArraySize
,
ArrayGet
,
ArraySet
,
ArrayCreateFromList
,
ListFromArray
.
Generic objects
Generic objects are objects that are implemented in C++, but
can be accessed through the Yacas interpreter.
IsGeneric -- check for generic object
Internal function
Calling format:
Description:
Returns True if an object is of a generic object
type.
GenericTypeName -- get type name
Internal function
Calling format:
Description:
Returns a string representation of
the name of a generic object.
EG
In> GenericTypeName(ArrayCreate(10,1))
Out> "Array";
|
ArrayCreate -- create array
Internal function
Calling format:
Description:
Creates an array with size elements, all initialized to the
value init.
ArraySize -- get array size
Internal function
Calling format:
Description:
Returns the size of an array (number of elements in the array).
ArrayGet -- fetch array element
Internal function
Calling format:
Description:
Returns the element at position index in the array passed. Arrays are treated
as base-one, so index set to 1 would return the first element.
Arrays can also be accessed through the [] operators. So
array[index] would return the same as ArrayGet(array, index).
ArraySet -- set array element
Internal function
Calling format:
ArraySet(array,index,element)
|
Description:
Sets the element at position index in the array passed to the value
passed in as argument to element. Arrays are treated
as base-one, so index set to 1 would set first element.
Arrays can also be accessed through the [] operators. So
array[index] := element would do the same as ArraySet(array, index,element).
ArrayCreateFromList -- convert list to array
Internal function
Calling format:
ArrayCreateFromList(list)
|
Description:
Creates an array from the contents of the list passed in.
ListFromArray -- convert array to list
Internal function
Calling format:
Description:
Creates a list from the contents of the array passed in.