Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168753
Image: ubuntu2004
(5-2)*(5+2)
21
2.2.2. : 525+2\frac{5-2}{5+2}.
(5-2)/(5+2)
3/7
2.2.3. : (5.12.1)(3.9+2.1)(5.1-2.1)(3.9+2.1).
(5.1-2.1)*(3.9+2.1)
18.0000000000000
2.2.4. : 2317{2}^{3}-17.
2^3-17
-9
2.2.5. : 341+5{3}^{4-1}+5.
3^(4-1)+5
32
abs(-(-7))
7
2.2.7. : 5!5!.
factorial(5)
120
2.2.8. : 2\sqrt{2}.
sqrt(2)
sqrt(2)
\sqrt{2}$ float() RR().
float(sqrt(2))
1.4142135623730951
RR(sqrt(2))
1.41421356237310
2.2.9. : sin2\sin{2}.
sin(2)
sin(2)
RR(sin(2))
0.909297426825682
print "Answer:"
Answer:
print "cos(15)=",float(cos(15))
cos(15)= -0.759687912859
. SAGE , ).

2.2.10. sin, cos, tg, ctg \alpha = \frac{\pi}{4}$. .

print "sin(pi/4)=", float(sin(pi/4)) print "cos(pi/4)=", float(cos(pi/4)) print "tg(pi/4)=", float(tan(pi/4)) print "ctg(pi/4)=", float(cot(pi/4))
sin(pi/4)= 0.707106781187 cos(pi/4)= 0.707106781187 tg(pi/4)= 1.0 ctg(pi/4)= 1.0
d=3 d^2-14
-5
2.2.12. a2b2a^2-b^2, a=33a=33, b=27b=27.
a=33; b=27 a^2-b^2
360
, i> /i>. var(),
var('s,t') s=2 s+t
t + 2
,
var('x') sqrt(x^2+y^2)
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/notebook/sage_notebook/worksheets/admin/59/code/39.py", line 7, in <module> exec compile(ur'sqrt(x**Integer(2)+y**Integer(2))' + '\n', '', 'single') File "/usr/local/sage/local/lib/python2.5/site-packages/sympy/plotting/", line 1, in <module> NameError: name 'y' is not defined
var('x,y'); sqrt(x^2+y^2)
(x, y) sqrt(y^2 + x^2)
var('a,b') func(a,b)=a^3-b^3
func(3,2)
19
func(2.1,1.3)
7.06400000000000