Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 568
Image: ubuntu2004
Kernel: SageMath 9.2
#Exercise 1 3
3
#Exercise 2 1775
1775
#Exercise 3 2*2
4
#Exercise 4 10/4
5/2
#Exercise 5 1775/6
1775/6
#Exercise 6 1775/6.0
295.833333333333
#Exercise 7 (2.5^6)
244.140625000000
#Exercise 8 mice = 3 mice
3
#Exercise 9 prod = 7*94 prod
658
#Exercise 10 - a is a variable that is assigned to the value 2*26. b is a variable that is assigned to the value 29*12. val is assigned to the value of a*b. the value of val is printed.
#Exercise 11 a = 67*45 b = 93*442 ab = a + b ab
44121
#Exercise 12 k = 76.2 + 35.1 sqrt(k)
10.5498815159223
#Exercise 13 bignum = mice^20 bignum
3486784401
#Exercise 14 - the value of dalmation in the first line is asssigned to 100
#Exercise 15 - the line dalmation=dalmation+1 will add 1 to orginal value of dalmation which is 100, so now the the value of dalmation is 101
#Exercise 16 num = 5 num = num + 2 num
7
#Exercise 17 sqrt(37.0)
6.08276253029822
#Exercise 18 ln(27.5)
3.31418600467253
#Exercise 19 sqrt(abs(625-810.0))
13.6014705087354
#Exercise 20 sqrt(ln(5^8.7))
3.74193931513816
#Exercise 21, part 1 number = 625-810.0 absolute = abs(number) sqrt(absolute)
13.6014705087354
#Exercise 21, part 2 number1 = 5^8.7 logof10 = ln(5^8.7) sqrt(logof10)
3.74193931513816
#Exercise 22 abs = -2
#Exercise 23 ln(35.0)
3.55534806148941
#Exercise 24 plot(sqrt(x), (x,0,1000))
Image in a Jupyter notebook
#Exercise 25 plot(abs(x),(x,-10,10))
Image in a Jupyter notebook
#Exercise 26 plot(5*x^4, (x,-2,2), color = "green")
Image in a Jupyter notebook
#Exercise 27 plot(x, (x, -1, 1), color = "pink") + plot(x^50, (x, -1, 1), color = "purple")
Image in a Jupyter notebook