Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 65
var("p n k") f=(1-p)**(k)*(1-(n-k)*ln(1-p))-1 %typeset_mode True
(p\displaystyle p, n\displaystyle n, k\displaystyle k)
f.plot()
Error in lines 1-1 Traceback (most recent call last): File "/projects/sage/sage-6.10/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 905, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "sage/symbolic/expression.pyx", line 10716, in sage.symbolic.expression.Expression.find_root (/projects/sage/sage-6.10/src/build/cythonized/sage/symbolic/expression.cpp:57193) def find_root(self, a, b, var=None, xtol=10e-13, rtol=4.5e-16, maxiter=100, full_output=False): TypeError: find_root() takes at least 2 positional arguments (0 given)
%typeset_mode True a=[1,2,3,"s"] a.append([3,4])
a
[1\displaystyle 1, 2\displaystyle 2, 3\displaystyle 3, s, [3\displaystyle 3, 4\displaystyle 4]]