| Download
All published worksheets from http://sagenb.org
Project: sagenb.org published worksheets
Views: 168754Image: ubuntu2004
Test sheet
This is where we compute something important
[3, 4, 5, 6]
f(x)\;=\;e^{\left(-x\right)} \sin\left(x\right)
\hat{f}(x;0)\;=\;-\frac{1}{30} \, x^{5} + \frac{1}{3} \, x^{3} - x^{2} + x+\mathcal{O}(x^{6})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_36.py", line 9, in <module>
exec compile(ur'open("___code___.py","w").write("# -*- coding: utf-8 -*-\n" + _support_.preparse_worksheet_cell(base64.b64decode("ZnJvbSBsaWJzdm0gaW1wb3J0ICoKcHJvYiA9IHN2bV9wcm9ibGVtKFsxLC0xXSxbWzEsMCwxXSxbLTEsMCwtMV1dKQpwYXJhbSA9IHN2bV9wYXJhbWV0ZXIoa2VybmVsX3R5cGUgPSBMSU5FQVIsIEM9ZmxvYXQoMTApKQptID0gc3ZtX21vZGVsKHByb2IsIHBhcmFtKQ=="),globals())+"\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmpokA7PK/___code___.py", line 3, in <module>
from libsvm import *
ImportError: No module named libsvm
Call:
lm(formula = cls ~ x + y, data = data)
Residuals:
1 2 3 4 5 6
-0.6556 0.2111 -0.1148 0.5852 -0.3926 0.3667
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.1963 0.9478 0.207 0.849
x 0.3259 0.1966 1.658 0.196
y -0.4333 0.2365 -1.832 0.164
Residual standard error: 0.6106 on 3 degrees of freedom
Multiple R-squared: 0.8136, Adjusted R-squared: 0.6893
F-statistic: 6.546 on 2 and 3 DF, p-value: 0.08049