Tuesday, November 1, 2016

Random Python Programs: November 1 2016

Simple Power Rule Antiderivative Calculator 1

def program1():
print("This program takes the antiderivative using the following formula.")
print("Formula: Ax^ndx = A(1/n+1)x^(n+1)+C")
print("This Program Cannot Handle n being a fraction")
print("This Program Cannot Handle the Antiderivative of Exponential Functions.")
print("------------------------------------------------------------------------")
n = int(input("Input a value for n?:"))
A = int(input("Input a value for A?:"))
if n == -1:
print("Solution = ",A,"*","ln|x|+C")
program1()
else:
a = n+1
b = 1/a
print("Solution = ",A,"(","1/",a,")","*","x","^","(",a,")","+C")
program1()
program1()

Simple Antiderivative of Exponential Functions Calculator 1

def program2():
print("This program takes the antiderivative of exponential functions using the following formula.")
print("Formula: Ae^xdx = (1/Ae^(Ax))+C")
print("------------------------------------------------------------------------")
A = int(input("Input a value for A?:"))
print("1/",A,"e^","(",A,"*","x",")","+C")
program2()
program2()

AntiDerivative Prototypes 1

def program1():
print("This program takes the antiderivative using the following formula.")
print("Formula: Ax^ndx = A(1/n+1)x^(n+1)+C")
print("This Program Cannot Handle n being a fraction")
print("This Program Cannot Handle the Antiderivative of Exponential Functions.")
print("------------------------------------------------------------------------")
n = int(input("Input a value for n?:"))
A = int(input("Input a value for A?:"))
if n == -1:
print("Solution = ",A,"*","ln|x|+C")
program1()
else:
a = n+1
b = 1/a
print("Solution = ",A,"(","1/",a,")","*","x","^","(",a,")","+C")
program1()
program1()
def program2():
print("This program takes the antiderivative of exponential functions using the following formula.")
print("Formula: Ae^xdx = (1/Ae^(Ax))+C")
print("------------------------------------------------------------------------")
A = int(input("Input a value for A?:"))
print("1/",A,"e^","(",A,"*","x",")","+C")
program2()
program2()

AntiDerivative Prototypes 2

def program1():
print("This program takes the antiderivative using the following formula.")
print("Formula: Ax^ndx = A(1/n+1)x^(n+1)+C")
print("This Program Cannot Handle the Antiderivative of Exponential Functions.")
print("------------------------------------------------------------------------")
nnumerator = int(input("Input a value for the numerator of n?:"))
ndenominator = int(input("Input a value for the denominator of n?:"))
n = nnumerator/ndenominator
A = int(input("Input a value for A?:"))
if n == -1:
print("Solution = ",A,"*","ln|x|+C")
program1()
else:
a = n+1
b = 1/a
print("Solution = ",A,"(","1/",a,")","*","x","^","(",a,")","+C")
program1()
program1()
def program2():
print("This program takes the antiderivative of exponential functions using the following formula.")
print("Formula: Ae^xdx = (1/Ae^(Ax))+C")
print("------------------------------------------------------------------------")
A = int(input("Input a value for A?:"))
print("1/",A,"e^","(",A,"*","x",")","+C")
program2()
program2()

AntiDerivative Prototypes 3

def program1():
print("This program takes the antiderivative using the following formula.")
print("Formula: Ax^ndx = A(1/n+1)x^(n+1)+C")
print("This Program Cannot Handle the Antiderivative of Exponential Functions.")
print("------------------------------------------------------------------------")
nnumerator = int(input("Input a value for the numerator of n?:"))
ndenominator = int(input("Input a value for the denominator of n?:"))
n = nnumerator/ndenominator
A = int(input("Input a value for A?:"))
if n == -1:
print("Solution = ",A,"*","ln|x|+C")
program3()
else:
a = n+1
b = 1/a
print("Solution = ",A,"(","1/",a,")","*","x","^","(",a,")","+C")
program3()
def program2():
print("This program takes the antiderivative of exponential functions using the following formula.")
print("Formula: Ae^xdx = (1/Ae^(Ax))+C")
print("------------------------------------------------------------------------")
A = int(input("Input a value for A?:"))
print("1/",A,"e^","(",A,"*","x",")","+C")
program3()
def program3():
print("This program is designed for solving antiderivates.")
action = input("Do you need to solve an antiderivative using the Power Rule (p) or are you finding the antiderivative of exponential functions (e) Please choose (p or e):")
if action == "p":
program1()
if action == "e":
program2()
program3()

AntiDerivative Prototypes 4

def program1():
print("This program takes the antiderivative using the following formula.")
print("Formula: Ax^ndx = A(1/n+1)x^(n+1)+C")
print("This Program Cannot Handle the Antiderivative of Exponential Functions.")
print("------------------------------------------------------------------------")
nnumerator = int(input("Input a value for the numerator of n?:"))
ndenominator = int(input("Input a value for the denominator of n?:"))
n = nnumerator/ndenominator
A = int(input("Input a value for A?:"))
if n == -1:
print("Solution = ",A,"*","ln|x|+C")
program3()
else:
a = n+1
b = 1/a
print("Solution = ",A,"(","1/",a,")","*","x","^","(",a,")","+C")
program3()
def program2():
print("This program takes the antiderivative of exponential functions using the following formula.")
print("Formula: Ae^kxdx = (A(1/k)e^(kx))+C")
print("------------------------------------------------------------------------")
A = int(input("Input a value for A?:"))
k = int(input("Input a value for k?:"))
print("1/",A,"e^","(",A,"*",k,"x",")","+C")
program3()
def program3():
print("This program is designed for solving antiderivates.")
action = input("Do you need to solve an antiderivative using the Power Rule (p) or are you finding the antiderivative of exponential functions (e) Please choose (p or e):")
if action == "p":
program1()
if action == "e":
program2()
program3()

AntiDerivative Prototypes 5

def program1():
print("This program takes the antiderivative using the following formula.")
print("Formula: Ax^ndx = A(1/n+1)x^(n+1)+C")
print("This Program Cannot Handle the Antiderivative of Exponential Functions.")
print("------------------------------------------------------------------------")
nnumerator = int(input("Input a value for the numerator of n?:"))
ndenominator = int(input("Input a value for the denominator of n?:"))
n = nnumerator/ndenominator
A = int(input("Input a value for A?:"))
if n == -1:
print("Solution = ",A,"*","ln|x|+C")
program3()
else:
a = n+1
b = 1/a
print("Solution = ",A,"(","1/",a,")","*","x","^","(",a,")","+C")
program3()
def program2():
print("This program takes the antiderivative of exponential functions using the following formula.")
print("Formula: Ae^kxdx = (A(1/k)e^(kx))+C")
print("------------------------------------------------------------------------")
A = int(input("Input a value for A?:"))
k = int(input("Input a value for k?:"))
print(A,"(","1/",k,")","e^","(",k,"x",")","+C")
program3()
def program3():
print("This program is designed for solving antiderivates.")
action = input("Do you need to solve an antiderivative using the Power Rule (p) or are you finding the antiderivative of exponential functions (e) Please choose (p or e):")
if action == "p":
program1()
if action == "e":
program2()
program3()

AntiDerivative Prototypes 6

def program1():
print("This program takes the antiderivative using the following formula.")
print("Formula: Ax^ndx = A(1/n+1)x^(n+1)+C")
print("This Program Cannot Handle the Antiderivative of Exponential Functions.")
print("------------------------------------------------------------------------")
nnumerator = int(input("Input a value for the numerator of n?:"))
ndenominator = int(input("Input a value for the denominator of n?:"))
n = nnumerator/ndenominator
A = int(input("Input a value for A?:"))
if n == -1:
print("Solution = ",A,"*","ln|x|+C")
program3()
else:
a = n+1
b = 1/a
print("Solution = ",A,"(","1/",a,")","*","x","^","(",a,")","+C")
program3()
def program2():
print("This program takes the antiderivative of exponential functions using the following formula.")
print("Formula: Ae^kxdx = (A(1/k)e^(kx))+C")
print("------------------------------------------------------------------------")
A = str(input("Input a value for A?:"))
k = str(input("Input a value for k?:"))
print(A,"(","1/",k,")","e^","(",k,"x",")","+C")
program3()
def program3():
print("This program is designed for solving antiderivates.")
action = input("Do you need to solve an antiderivative using the Power Rule (p) or are you finding the antiderivative of exponential functions (e) Please choose (p or e):")
if action == "p":
program1()
if action == "e":
program2()
program3()

AntiDerivative Prototypes 7

def program1():
print("This program takes the antiderivative using the following formula.")
print("Formula: Ax^ndx = A(1/n+1)x^(n+1)+C")
print("This Program Cannot Handle the Antiderivative of Exponential Functions.")
print("------------------------------------------------------------------------")
nnumerator = int(input("Input a value for the numerator of n?:"))
ndenominator = int(input("Input a value for the denominator of n?:"))
n = nnumerator/ndenominator
A = str(input("Input a value for A?:"))
if n == -1:
print("Solution = ",A,"*","ln|x|+C")
program3()
else:
a = n+1
b = 1/a
print("Solution = ",A,"(","1/",a,")","*","x","^","(",a,")","+C")
program3()
def program2():
print("This program takes the antiderivative of exponential functions using the following formula.")
print("Formula: Ae^kxdx = (A(1/k)e^(kx))+C")
print("------------------------------------------------------------------------")
A = str(input("Input a value for A?:"))
k = str(input("Input a value for k?:"))
print(A,"(","1/",k,")","e^","(",k,"x",")","+C")
program3()
def program3():
print("This program is designed for solving antiderivates.")
action = input("Do you need to solve an antiderivative using the Power Rule (p) or are you finding the antiderivative of exponential functions (e) Please choose (p or e):")
if action == "p":
program1()
if action == "e":
program2()
program3()

AntiDerivative Prototypes 8

No comments:

Post a Comment