How to plot a function with conditional statements using matplotlib in python -


i wanna know how draw function in python, i've yet grasp how make complete functions using matplotlib yet

my goal plot graph function:

    f(x)=     if        x < x^2           x = x^2     else if       x \in [0,2]           x = x     else       x = 5 

however, i'm not sure how started on except importing matplotlib, im sorry question repetitive, im not sure else go help


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

minify - Minimizing css files -

php - How to remove letter in front of the word laravel -