So, i am trying to create a linear functions in python such has y = x
without using numpy.linspace()
. In my understanding numpy.linspace() gives you an array which is discontinuous. But to fo
I am trying to find the intersection of y = x
and a function unsolvable analytically ( such has the one in the picture ) .
Here is my code I don't know how to define x. Is there a way too express y has a simple continuous function?
import random as rd
import numpy as np
a = int(input('choose a :'))
eps = abs(float(input('choose epsilon :')))
b = 0
c = 10
x = ??????
y1 = x
y2 = a*(1 - np.exp(x))
z = abs(y2 - y1)
while z > eps :
d = rd.uniform(b,c)
c = d
print(c)
print(y1 , y2 )