# 송정현~

## 2412 days 전, Lucas.Song 작성

not true
 False False
not false
 True True
true and false
 False False
false or true or false
 True True
1 == 1
 True True
1 >= 0.1
 True True
not (true or false) == (false and true)
 True True
1 >= 1
 True True
1 + i >= 2 - i
 (I + 1) >= (-I + 2) (I + 1) >= (-I + 2)
((3/2) > 1) or (2/3 < 1)
 True True
(3/2 > 1) ^^ (2/3 < 1)
 False False
x > (1/2)
 x > (1/2) x > (1/2)
s=12
 12 12
t=12
s=1063680793
 1063680793 1063680793
c,d,e=2,3,5 c,d,e
 (2, 3, 5) (2, 3, 5)
a = b = 1
 1 1
 1 1
f = x^2 + x + 1
 x^2 + x + 1 x^2 + x + 1
f(x=3)
 13 13
[1..10]
 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[1,11..101]
 [1, 11, 21, 31, 41, 51, 61, 71, 81, 91, 101] [1, 11, 21, 31, 41, 51, 61, 71, 81, 91, 101]
B = Set([8,6,17,-4,20, -2 ])
 {17, 20, 6, 8, -4, -2} {17, 20, 6, 8, -4, -2}
a.intersection(B)
 set([8, 6]) set([8, 6])
B.difference(a)
 {17, 20, -4, -2} {17, 20, -4, -2}
A = Set([1,2,3])
 {1, 2, 3} {1, 2, 3}
powA = A.subsets();powA
 Subsets of {1, 2, 3} Subsets of {1, 2, 3}
pairsA = A.subsets(2); pairsA
 Subsets of {1, 2, 3} of size 2 Subsets of {1, 2, 3} of size 2
tan(0), tan(pi/4), tan(pi/2), tan(3*pi/4), tan(pi)
 (0, 1, Infinity, -1, 0) (0, 1, Infinity, -1, 0)
S = Set([3, 6..18])
S.cardinality()
 6 6
2^6
 64 64
S.subsets().cardinality()
 64 64
[tan(x) for x in [0, pi/4..pi]]
 [0, 1, Infinity, -1, 0] [0, 1, Infinity, -1, 0]
14 / 4
 7/2 7/2
divmod(14,4)
 (3, 2) (3, 2)
3.divides(15)
 True True
A = Set([1,2,3]);
powA = A.subsets();
powA Subsets of {1, 2, 3}
 Traceback (click to the left of this block for traceback) ... SyntaxError: invalid syntax Traceback (most recent call last): File "", line 1, in File "_sage_input_115.py", line 10, in exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("cG93QQpTdWJzZXRzIG9mIHsxLCAyLCAzfQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in File "/tmp/tmpLSqBfH/___code___.py", line 4 Subsets of {_sage_const_1 , _sage_const_2 , _sage_const_3 } ^ SyntaxError: invalid syntax
powA.Subsets of {1, 2, 3}
 Traceback (click to the left of this block for traceback) ... SyntaxError: invalid syntax Traceback (most recent call last): File "", line 1, in File "_sage_input_116.py", line 10, in exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("cG93QS5TdWJzZXRzIG9mIHsxLCAyLCAzfQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in File "/tmp/tmp57kwQm/___code___.py", line 3 powA.Subsets of {_sage_const_1 , _sage_const_2 , _sage_const_3 } ^ SyntaxError: invalid syntax
powA = A.subsets(); powA
 Subsets of {1, 2, 3} Subsets of {1, 2, 3}
factor(63)
 3^2 * 7 3^2 * 7
divmod(956,98)
 (9, 74) (9, 74)
956 / 98
 478/49 478/49
956 // 98
 9 9
3.divides(234878)
 False False
134.divisors()
 [1, 2, 67, 134] [1, 2, 67, 134]
491.divisors()
 [1, 491] [1, 491]
422.divisors()
 [1, 2, 211, 422] [1, 2, 211, 422]
1002.divisors()
 [1, 2, 3, 6, 167, 334, 501, 1002] [1, 2, 3, 6, 167, 334, 501, 1002]
134.prime_divisors()
 [2, 67] [2, 67]
491.prime_divisors()
 [491] [491]
422.prime_divisors()
 [2, 211] [2, 211]
1002.prime_divisors()
 [2, 3, 167] [2, 3, 167]
gcd(2, 5)
 1 1
lcm(2, 5)
 10 10
gcd(4, 10)
 2 2
lcm(4, 10)
 20 20
g=gcd(18, 51)
l=lcm(18, 51)
g*l == 18*51
 True True
abs(-100)
 100 100