Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61756538
Intro_1_1.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, May 8, 18:57
Size
805 B
Mime Type
text/x-python
Expires
Fri, May 10, 18:57 (2 d)
Engine
blob
Format
Raw Data
Handle
17554641
Attached To
rJNAL Jupyter notebooks for Linear Algebra
Intro_1_1.py
View Options
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 11 10:13:39 2019
@author: jecker
"""
import
numpy
as
np
import
AL_newFct
as
al
print
(
"Entrez le nombre de variables n="
)
#function EnterInt but we might need to specify what int we want: variable, nbr equation,..
n
=
input
()
n
=
al
.
EnterInt
(
n
)
print
(
"Votre équation est de la forme"
)
al
.
printEq
(
n
,
''
)
print
(
"Entrez les "
,
n
+
1
,
" coefficients de l'équations sous le format a1, a2, ..., b"
)
entry
=
input
()
coeff
=
al
.
EnterListReal
(
n
,
entry
)
print
(
"Votre equation est"
)
al
.
printEq
(
n
,
coeff
)
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
print
(
"Entrez la solution sous la forme d'une suite de "
,
n
,
" nombres réels"
)
entry
=
input
()
sol
=
al
.
EnterListReal
(
n
-
1
,
entry
)
sol
=
np
.
asarray
(
sol
[
0
:
len
(
sol
)])
al
.
SolOfEq
(
sol
,
coeff
)
#%%%%%%%%%%
Event Timeline
Log In to Comment