Ask Your Question

error when perform symbolic calculation in Octave of Sage

asked 2016-02-09 04:44:25 -0500

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;

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

answered 2016-02-09 20:56:06 -0500

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:

  2. I've reported your bug to the Octave jupyter kernel issue tracker:


edit flag offensive delete link more


Thank you so much!

wangyan gravatar imagewangyan ( 2016-02-10 07:07:44 -0500 )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


Asked: 2016-02-09 04:44:25 -0500

Seen: 134 times

Last updated: Feb 09 '16