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:

Eval Calculator

Eval

-- Special symbol: eval As an argument in a call to ev (<expr>), eval causes an extra evaluation of <expr>. See ev.

Example:

:lisp (defun enum-interval (low high &optional p)  (let* ((result nil)         (end-result 0))    (do* ((low low (+ low 1)))      ((> low high) (if (not p) end-result (values-list end-result)))      (setf end-result (reverse (push low result))))));
:lisp (defun group (source n)  (if (zerop n) (error "zero length"))  (labels ((rec (source acc)             (let ((rest (nthcdr n source)))               (if (consp rest)                   (rec rest (cons (subseq source 0 n) acc))                   (nreverse (cons source acc))))))    (if source (rec source nil) nil)));
:lisp (defun row-sum (min max n)  (let ((list (enum-interval min max)) (result))    (values-list     (dotimes (i (length (group list n)) (values (nreverse result)))       (push        (list (mapcan (lambda (x) (if (numberp x) (list x)))              (nth i (group list n)))              (format nil "sum: ~a" (reduce

          (%i1) [a:b,b:c,c:d,d:e];
          (%o1)                            [b, c, d, e]
          (%i2) a;
          (%o2)                                  b
          (%i3) ev(a);
          (%o3)                                  c
          (%i4) ev(a),eval;
          (%o4)                                  e
          (%i5) a,eval,eval;
          (%o5)                                  e

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

(%o1)                                true
(%i2) 

Eval Example

Related Examples

eval

z: x*y;

y: (a+b)*x;

eval(z);

Calculate

eval-is-subst

Strecke:40;

Zeit:20;

ans1:s/t;

Calculate

eval

a2: rand_with_step(-5...

a1: rand_with_step(-5...

a0: rand_with_step(-5...

Calculate

eval

eval(3+2);

%o1;

Calculate

eval-matrix-transpose

D = matrix([d00,d01,d...

B = matrix([b00,b01,b...

eval(transpose(B) * D...

Calculate

eval

b=3.1416^(-0.5);

b^2*3.1416;

eval(%%);

Calculate

eval-exp-solve

surv: exp(-a*t);

param: solve(surv=0.9...

eval(param,t=12);

Calculate

eval

eval(a^2-b^2);

Calculate

eval-tan

eval(tan(%pi/4+%pi/4));

Calculate

eval-exp-integrate

eval(integrate(exp(x^...

Calculate