Help in plotting

Adel Chemrouk shared this question 5 months ago
Answered

Hi,


I want to plot this function: f(x) = 0 : x[0;5]


f(x) = 5*e^(-x) : x[5;10]


f(x) = 5*sin(x) : x[10:infinity[


Any idea about how I can do this in geogebra? Thanks.


Adel.

Best Answer
photo

You can type the input: f(x) = If(0 ≤ x ≤ 5, 0, If(5 < x ≤ 10, 5ℯ^(-x), If(x > 10, 5sin(x))))

chris

Comments (5)

photo
1

f(x) = 0, 0<=x<=5

f(x) = 5*exp(-x), 5<=x<=10

f(x) = 5*sin(x), x>=10

photo
1

Michael Borcherds thanks for responding. But, that did not work.


Once I write the second line (f(x) = 5*e^(-x), 5<=x<=10), it replaces the first one.


Any idea?

photo
1

You can type the input: f(x) = If(0 ≤ x ≤ 5, 0, If(5 < x ≤ 10, 5ℯ^(-x), If(x > 10, 5sin(x))))

chris

photo
2

Sorry, I see now. @Chris: this syntax is better:


f(x) = If(0 ≤ x ≤ 5, 0, 5 < x ≤ 10, 5exp(-x),x > 10, 5sin(x))

photo
1

Thanks all for helping. I really appreciate that.

© 2018 International GeoGebra Institute