ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 10 Feb 2016 07:07:44 -0600error when perform symbolic calculation in Octave of Sagehttp://ask.sagemath.org/question/32507/error-when-perform-symbolic-calculation-in-octave-of-sage/ 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?Tue, 09 Feb 2016 04:44:25 -0600http://ask.sagemath.org/question/32507/error-when-perform-symbolic-calculation-in-octave-of-sage/Answer by William Stein for <p>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.</p>
<p>My code is as follows:</p>
<pre><code>pkg load symbolic
syms x
f = sin(x)^2;
diff(f)
</code></pre>
<p>when I execute it, error happened, it said</p>
<blockquote>
<p>'ascii' codec can't encode character u'\u22c5' in position 13: ordinal not in range(128)</p>
</blockquote>
<p>How can I solve this problem?</p>
http://ask.sagemath.org/question/32507/error-when-perform-symbolic-calculation-in-octave-of-sage/?answer=32518#post-id-325181. 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/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2016-02-09-185147-octave-symbolic.sagews
2. I've reported your bug to the Octave jupyter kernel issue tracker: https://github.com/Calysto/octave_kernel/issues/37
WilliamTue, 09 Feb 2016 20:56:06 -0600http://ask.sagemath.org/question/32507/error-when-perform-symbolic-calculation-in-octave-of-sage/?answer=32518#post-id-32518Comment by wangyan for <ol>
<li><p>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: <a href="https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2016-02-09-185147-octave-symbolic.sagews">https://cloud.sagemath.com/projects/4...</a> </p></li>
<li><p>I've reported your bug to the Octave jupyter kernel issue tracker: <a href="https://github.com/Calysto/octave_kernel/issues/37">https://github.com/Calysto/octave_ker...</a></p></li>
</ol>
<p>William</p>
http://ask.sagemath.org/question/32507/error-when-perform-symbolic-calculation-in-octave-of-sage/?comment=32520#post-id-32520Thank you so much!Wed, 10 Feb 2016 07:07:44 -0600http://ask.sagemath.org/question/32507/error-when-perform-symbolic-calculation-in-octave-of-sage/?comment=32520#post-id-32520