33 lines
403 B
Python
Executable File
33 lines
403 B
Python
Executable File
#!/bin/python
|
|
import mathobjects as mo
|
|
|
|
# a = mo.Const(5)
|
|
# b = mo.Const(10)
|
|
|
|
# c = mo.Var('c')
|
|
|
|
# f = a*(b//(a**(b/a-mo.Sin(5))))-b+2 == c-b
|
|
# # f = a + b == c + b
|
|
|
|
# print(f)
|
|
|
|
# # f = f.simplify()
|
|
|
|
# print(f)
|
|
|
|
# y = f.solve({"c": 2})
|
|
|
|
# print(y)
|
|
|
|
k = mo.Vec(5, 6, 7)
|
|
|
|
print(str(k))
|
|
|
|
k[1] = 3
|
|
|
|
print(str(k))
|
|
print(str(k[2]))
|
|
|
|
|
|
# print("a is b: " + str(a is b))
|
|
# print("a is not b: " + str(a is not b)) |