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 math | |
import numpy as np | |
import squarerootcalculations as src | |
import squarerootplot as srp | |
def main(): |
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 math | |
import numpy as np | |
import squarerootestimates as sre | |
def babylonian_array(radicands, iterations): | |
estimates = sre.linear_2(radicands) |
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 math | |
import numpy as np | |
import squarerootestimates as sre | |
import squarerootplot as srp | |
def main(): |
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 | |
import matplotlib.pyplot as plt | |
def plot(valuerange, sqrts=None): | |
matplotlib.pyplot.figure(figsize=(10,8), facecolor="#FFFFFF") | |
plt.title('Square Roots in Python ') |
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 | |
def _nparray_to_sci_not(radicands): | |
exponents = np.log10(radicands).astype(int) | |
significands = radicands / 10**exponents | |
return {"significands": significands, "exponents": exponents} |
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 sibaseunit as sibu | |
def main(): | |
print("----------------------") | |
print("| codedrome.com |") | |
print("| SI Units in Python |") | |
print("| Part 1: Base Units |") | |
print("----------------------\n") |
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
from types import MappingProxyType | |
class SIBaseUnit(object): | |
""" | |
The SIBaseUnit class provides properties for | |
representing values of the 7 SI base units, | |
multiplier prefixes such as kilo and nano, | |
methods for string representation, |
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 setutilities as su | |
def main(): | |
print("-----------------") | |
print("| codedrome.com |") | |
print("| Set Demo |") | |
print("-----------------\n") |
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
from types import MappingProxyType | |
symbols = MappingProxyType({ "emptySet": "∅", | |
"union": "∪", | |
"intersection": "∩", | |
"is_element_of": "∈", | |
"is_not_element_of": "∉", | |
"is_subset_of": "⊆", | |
"is_proper_subset_of": "⊂", |
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 textjumbler | |
def main(): | |
print("------------------") | |
print("| codedrome.com |") | |
print("| Jumbled Text |") | |
print("------------------\n") |