In [1]:
import numpy as np
import Loan as p1
import root_finder_examples as p2
import arclength as p3
import sin_Taylor_series_diffeq as p4

Problem 1: Loan calculator

Determines payments for loans

This problem outputs the payment you must make each month


In [2]:
p1.equations(1000, 10, 5)


Loan Payment: 104.166666667
Loan Payment: 103.75
Loan Payment: 103.333333333
Loan Payment: 102.916666667
Loan Payment: 102.5
Loan Payment: 102.083333333
Loan Payment: 101.666666667
Loan Payment: 101.25
Loan Payment: 100.833333333
Loan Payment: 100.416666667

Problem 2: Root Finder

Uses different methods (outputted answers as an array)

The first element is Newton's method, the second is the Bisector method, and the third is the Secant method for the equation 0 = sin(x)


In [3]:
p2.run()


(3.311802132639069e-05, -7.62939453125e-06, -5.3642541555028803e-29)

Problem 3: ArcLength

Calculates arclength for a function

Outputs y(x) vs s(x), very cool


In [4]:
p3.part_3()


Problem 4: sin_Taylor_series_diffeq

approximates sin using taylor series

outputs are the point, x, at which the series was evaluated, n, the number of terms, and s_n, the output of the series.


In [5]:
p4.output()


x | n | s_n
0.0 | 0 | 0
0.111111111111 | 1 | 0
0.222222222222 | 2 | -0.00182898948331
0.333333333333 | 3 | -0.00613854595336
0.444444444444 | 4 | -0.0144880827774
0.555555555556 | 5 | -0.0281401697448
0.666666666667 | 6 | -0.0482968635978
0.777777777778 | 7 | -0.076079901631
0.888888888889 | 8 | -0.112516967588
1.0 | 9 | -0.158529015192

In [ ]: