Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Subvar Calculator

Subvar

Function: subvar (<x>, <i>) Evaluates the subscripted expression <x>[<i>].

subvar evaluates its arguments.

arraymake (<x>, [<i>] constructs the expression <x>[<i>], but does not evaluate it.

Examples:

          (%i1) x : foo $
          (%i2) i : 3 $
          (%i3) subvar (x, i);
          (%o3)                         foo
                                           3
          (%i4) foo : [aa, bb, cc, dd, ee]$
          (%i5) subvar (x, i);
          (%o5)                          cc
          (%i6) arraymake (x, [i]);
          (%o6)                         foo
                                           3
          (%i7) %;
          (%o7)                          cc

There are also some inexact matches for subvar. Try ?? subvar to see them.

(%o1)                                true
(%i2) 

Subvar Example

Related Examples