Commit 6c0dabf3 authored by wongkai junttajit's avatar wongkai junttajit

update

parent 16d34810
......@@ -361,6 +361,28 @@
" * **significand** $1.f$ "
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(1, -1)"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(-1)**0,(-1)**1\n",
"\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {
......
......@@ -10,3 +10,15 @@ def double_prec(v):
v+="0"*(64-len(v))
return (-1)**int(v[0])*sum([int(v[i])*2**(11-i) for i in range(1,64)])
def IEEEsingle(v):
"""ใช้ IEEE สูตร
(-1)^2*2^(e-127)*1.f"""
def IEEEdouble(v):
"""ใช้ IEEE สูตร
(-1)^2*2^(e-1023)*1.f"""
#5x88x88x8x8x
#วงศ์ไกร จัรทะจิต
def ge(a,b):
pass
def solve(A,b):
import numpy.linalg
result=numpy.linalg.solve(A,b)
for x in result:
print('$x_1={}$'.format(x))
#5x3
m,n,_=map(int,input().split('x'))
print(m,n)
A=[]
for row in range(m):
#2,3,1,4,7
A.append(list (map(int,input().split(','))))
print(n,_)
#รับ บี ----->2,1,3,4,4
b= list(map(int,input().split(',')))
#ตอนนี้ เรามี a,b แล้วววววน่ะจ่ะ
solve(A,b)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment