Sharedscratch3 / 2018-01-13-104616.sagewsOpen in CoCalc
Author: William A. Stein
Description: this is a demo

Question 1: What is 2+3?2 + 3?

f(2,3)
1
print preparse(""" def g(n,m): print factor(n^m) """)
def g(n,m): print factor(n**m)
preparse('2/3')
'Integer(2)/Integer(3)'
Integer = float 2/3
0.6666666666666666
Integer = Integers(7)
2 + 8
3
%python3 2/3
0.6666666666666666
g(2,3)
2^3
prime_pi(10^6)
78498
n = ZZ.random_element(10^10000000)
%time k = n*n
CPU time: 0.14 s, Wall time: 0.14 s
len(str(k))
2000000
plot(x * sin(x), (x, -2, 10))
%r v <- c(4,5,8,9,1)
%r sd(v)
3.20936130717624
%r plot(v)