)version
)lisp cl-jupyter::+ispad-version+
)lisp cl-jupyter::*tmp-ispad*
f(x) ==
x>0 => 1
x=0 => 0
return -1
f(12.344)
f(0.0)
f(-1/7)
v:Vector(Integer):=[i^2 for i in 1..8]
M:= matrix [v,2*v,3*v]
L:=M*v
)set output tex on
M
L
I:=integrate(1/sqrt(1+x^4),x)
D(I,x,2)
function(%,G,x)
integrate(G(z),z)
)co ../spad/jupyter
)show JUPY
gnuDraw(G(x),x=-1..1,"gx.dat")
)system gnuplot -e 'set term png' gx.dat > gx.png
"gx.png"::FileName
jDraw(sin(x)/x,x=0.1..12*%pi)
)set output tex off
LDF ==> List DoubleFloat
X:=[i for i in 1..20]::LDF
Y:=[random 25 for i in 1..20]::LDF
jDrawXY(X,Y)
jDraw(besselJ(1,x)*cos(y),x=0..10,y=0..10)
The following file type can be inserted by converting them to FileName
:
"Flamingo.svg"::FileName
jHtml "<a href=_"http://www.w3schools.com/html/_">Visit our HTML tutorial</a>"
jHtml "<table style=_"width:100%_"> _
<tr> _
<td>Jill</td> _
<td>Smith</td> _
<td>50</td> _
</tr> _
<tr> _
<td>Eve</td> _
<td>Jackson</td> _
<td>94</td> _
</tr> _
</table>"
jHtml "<p>I will display € and © and ®</p>"
jHtml "<p>This is <sub>subscripted</sub> text.</p>"
jHtml "<form> _
First name:<br> _
<input type=_"text_" name=_"firstname_"> _
<br> _
Last name:<br> _
<input type=_"text_" name=_"lastname_"> _
</form> "
jHtml "<svg width=_"300_" height=_"200_"> <polygon points=_"100,10 40,198 190,78 10,78 160,198_" _
style=_"fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;_"/> </svg>"
jHtml "<select name=_"cars_"> _
<option value=_"volvo_">Volvo</option> _
<option value=_"saab_">Saab</option> _
<option value=_"fiat_">Fiat</option> _
<option value=_"audi_">Audi</option> _
</select>"
jHtml "$$-\frac{\hbar^2}{2m} \Delta\Psi+V(x)\,\Psi(x)=\ldots$$"
1/0
besselI(1,23.3)