This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GF = gfortran | |
all: clean chap11 | |
chap11: library p116 | |
echo "Done" | |
p116: chap11/p116.f03 | |
$(GF) chap11/p116.f03 -o p116 library/arpack/arpacklib.a -I . main.a geom.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.mplot3d import Axes3D | |
import math | |
from scipy.sparse import lil_matrix | |
from scipy.sparse import csr_matrix | |
from scipy.sparse.linalg import spsolve | |
import time | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
We basically want to do a binary tree that has quastions as splitting | |
""" | |
yes = ["y", "yes", "Y", "Yes"] | |
def ask(question): | |
ans = input(question+"? ") | |
if ans in: | |
return True | |
else: | |
return False |