Ask Your Question
1

error when perform symbolic calculation in Octave of Sage

asked 2016-02-09 11:44:25 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I have tried the Octave (matlab-like) kernel in Sagemathcloud, but when I intended to perform the symbolic calculation in Octave, something strange happened, and I can't solve it.

My code is as follows:

pkg load symbolic
syms x
f = sin(x)^2;
diff(f)

when I execute it, error happened, it said

'ascii' codec can't encode character u'\u22c5' in position 13: ordinal not in range(128)

How can I solve this problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-10 03:56:06 +0200

William Stein gravatar image
  1. If you don't have to use Jupyter, you can create a Sage worksheet (file ending in .sagews), then put %octave at the top of a cell, and your example works. For example: https://cloud.sagemath.com/projects/4...

  2. I've reported your bug to the Octave jupyter kernel issue tracker: https://github.com/Calysto/octave_ker...

William

edit flag offensive delete link more

Comments

Thank you so much!

wangyan gravatar imagewangyan ( 2016-02-10 14:07:44 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-02-09 11:44:25 +0200

Seen: 406 times

Last updated: Feb 10 '16