Hello everyone,

I'd like to use the following code to put it in a web page, using one-cell 
server. It works on my computer, but does not on one cell-server (tried it 
from my web page, and also from the one-cell server page).

The error message is too cryotic for me :-(

Any ideas?

Thanks

JC

var('x,y')
@interact
def _(A=matrix([[2,-2],[3,1]]),b=matrix([[2],[0]]),L=input_box(2, width=3, 
label="Plot range : $L$")):
    L1=implicit_plot(A[0][0]*x+A[0][1]*y==b[0][0] ,(x,-L,L),(y,-L,L), 
color='blue',figsize=5,axes=True, axes_labels=['$x$','$y$'], 
legend_label="$y$", gridlines=True, fontsize=12, axes_pad=0.05, 
typeset='latex')
    L2=implicit_plot(A[1][0]*x+A[1][1]*y==b[1][0] ,(x,-L,L),(y,-L,L), 
color='red',figsize=5,axes=True, axes_labels=['$x$','$y$'], 
legend_label="$y$", gridlines=True, fontsize=12, axes_pad=0.05, 
typeset='latex')     
    show(L1+L2)
    D=A[0][1]*b[1][0] - A[1][1]*b[0][0]
    if det(A)!=0 :
        s=A.inverse()*b
        print('The system is consistent, it has a unique solution, it is')
        show(s)
    else : 
        if D!=0 : print("The lines are parallel")
        else : print("The lines are the same")

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to