[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.1 A list of functions


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.1.1 Getxvars

Getxvars()

:: Return x variables

return

[x_list, x_str] x_list is a list of x variables, x_str is a string consisting of x variables separated by commas.

 
In(4)=RingD("x,y");
In(5)=Getxvars():
[    [    y , x ]  , y,x, ] 
See also
Files

lib/restriction/complex.k


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.1.2 Firstn

Firstn(m,n)

:: Return the first n elements of m.

return

Matrix or vector

m

Matrix or vector

n

Number

 
In(16)= mm = [[1,2,3],[4,5,6]];
In(17)= Firstn(mm,2):
    [[1,2], 
     [4,5]]
See also
Files

lib/restriction/complex.k


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated on August 30, 2025 using texi2html 1.82.