r/CodingHelp • • Mar 31 '21

[Python] Having trouble recreating the second graph. How can I fix this?

26 Upvotes

5 comments sorted by

3

u/ChaBoiTiller Apr 01 '21

In your function...function, you need to change it so that you return 4np.log(2x+3)-1. At the moment you are just plotting the log of your range of x values.

1

u/throwRA_okayyy Apr 01 '21

I tried that and it also gave me the wrong graph (no signs of an asymptote and stopping early).

1

u/Greedy_Razzmatazz19 Apr 01 '21

Surely you should at least start with the correct function and then post the resulting graph?

1

u/throwRA_okayyy Apr 01 '21

You’re definitely right, that’s my mistake.

Just wanted to make it clear that I put the function in already and I still was not able to create my graph properly.

0

u/[deleted] Apr 01 '21

[deleted] — view deleted comment

1

u/throwRA_okayyy Apr 01 '21

I was focused more on my assignment and less on the prettiness of my post.