import math
import numpy as np
import matplotlib.pyplot as plt
print("y = a^x + b")
jarda=0
while jarda<=0 or jarda==1:
jarda=int(input("zadej a "))
def v() :
while True:
číslo=(input("zadej b "))
try :
return int (číslo)
except ValueError
print("nebylo zadané číslo")
barca=b()
A = int (input("zadej počáteční hodnotu def.oboru "))
B = int (input("zadej konečnou hodnotu def.oboru "))
if barca>=0:
print("Px není")
else:
print("Px je:[0; ",(math.log(-barca,jarda)))
print("Py je:[0; ",(jarda0+barca))
if barca<=0:
print("Py není")
else:
print("Py je:[0; ",(jarda0+barca))
x= np.linspace(A,B)
y = jarda**x+barca
plt.plot(x,y, color="pink")
plt.axhline(y=0,color="black")
plt.axvline(x=0,color="orange")
plt.xlabel("x")
plt.ylabel("y")
plt.box(True)
plt.grid(True)
plt.title("exponenciální funkce")
Jan_102 0 Newbie Poster
rproffitt 2,662 "Nothing to see here." Moderator
Husoski 60 Newbie Poster
Reverend Jim 4,968 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
rproffitt commented: Thank you Reverend Kim +15
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.