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:

Newline

Function: newline ()

display2d;
gradef(charfun(dummy),0);
/* piecewise function definition */itv: [[x<0],[x>=0,x<1], [x>=1]];
 /* intervals */fi:  [ 1,    x^2+1,      2*x  ];
 /* local functions *//* creation of global function f and its derivative */f:0;
for i: 1 thru 3 do f:f+charfun(apply("and",itv[i]))*fi[i];
df:diff(f,x);
/* display local functions and derivatives */for i: 1 thru 3 do (  apply(assume,itv[i]),  newline(),  print(itv[i]),  print("f = ",ev(f)),  print("df = ",ev(df)),  apply(forget,itv[i])  );
plot2d([f,df],[x,-2,3],[y,-1,5],[style, [lines,4,3],[lines,2,2]]);

Function: newline (<stream>) Writes a new line (to <stream>). See sprint for an example of using newline(). Note that there are some cases, where newline() does not work as expected.

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

(%o1)                                true
(%i2) 

Related Examples

newline-printf-sprint

voltage : (26+31+63+1...

v_TB: 1.2;

R1: 51000;

Calculate

newline-printf-sprint

voltage : (26+31+63+1...

v_TB: 1.2;

R1: 51000;

Calculate