Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

sage -c "print diff(x^4,x)"

I'm using 5.3 on Ubuntu 64 bit.

I would like to have the following prent 4x^3 to standard out.

$ ./sage -c "print diff(x^4,x)"
Traceback (most recent call last):
  File "/home/xuwang/sage/local/bin/sage-eval", line 15, in <module>
    eval(compile(s,'<cmdline>','exec'))
  File "<cmdline>", line 1, in <module>
NameError: name 'x' is not defined
$

sage -c "print diff(x^4,x)"

I'm using 5.3 on Ubuntu 64 bit.

I would like to have the following prent 4x^3 print 4x^3 to standard out.

$ ./sage -c "print diff(x^4,x)"
Traceback (most recent call last):
  File "/home/xuwang/sage/local/bin/sage-eval", line 15, in <module>
    eval(compile(s,'<cmdline>','exec'))
  File "<cmdline>", line 1, in <module>
NameError: name 'x' is not defined
$

sage -c "print diff(x^4,x)"

I'm using 5.3 on Ubuntu 64 bit.

I would like to have the following print 4x^3 to standard out.

$ ./sage -c "print diff(x^4,x)"
Traceback (most recent call last):
  File "/home/xuwang/sage/local/bin/sage-eval", line 15, in <module>
    eval(compile(s,'<cmdline>','exec'))
  File "<cmdline>", line 1, in <module>
NameError: name 'x' is not defined
$

sage -c "print diff(x^4,x)"

I'm using 5.3 on Ubuntu 64 bit.

I would like to have the following print 4x^3 to standard out.

$ ./sage -c "print diff(x^4,x)"
Traceback (most recent call last):
  File "/home/xuwang/sage/local/bin/sage-eval", line 15, in <module>
    eval(compile(s,'<cmdline>','exec'))
  File "<cmdline>", line 1, in <module>
NameError: name 'x' is not defined
$