Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Signing the points were 2 functions are equal

$
0
0

Hello, there!
I’m working with some numerical calculations, plotting 2 diferent functions as follows:

using Plots

h=0
K=1.5
g(y) = y
j(y) = tanh(K*y+h)

plot(g,xlim=(-1.5,1.5),label=("g(y)=y"),xlabel=("y"),ylabel=("g(y),j(y)"))
plot!(j,label=("j(y)=tanh(Ky+h)"))

Thats working fine, and the result is this plot:
gj
Now, I would like to mark the points where both functions intersect. How can I do that?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles