- #1
abbeynewton
- 31
- 0
Hi everyone, i have been recently trying to get familiar with the Mathematica software for a project am working on. In the course of that i encountered a problem on graphics. here's the question:
Superimpose the plots y=√(x^2+a), √a≤x≤√a+3 for the values a=1,a=4,a=9 in the same figure.
Now the challenge is to input this correctly into Mathematica. I tried doing it this way:
eqy1[x_]:=√(x^2+a)/; a -> 1
eqy2[x_]:=√(x^2+a)/; a -> 4
eqy3[x_]:=√(x^2+a)/; a -> 9
Plot[eqy1[x],eqy2[x],eqy3[x], {x, √a, √a+3}, PlotRange -> {-3,3}, PlotStyle->{red,green,blue}]
when i entered this ,it sent an error message saying that an option is needed beyond position 2 and all of that.
Please i need any clue, hint or help on how to input it correctly. I have only a month to learn everything i need to know in Mathematica for my final year project, and i need to get this problem before i go through. thanks
Superimpose the plots y=√(x^2+a), √a≤x≤√a+3 for the values a=1,a=4,a=9 in the same figure.
Now the challenge is to input this correctly into Mathematica. I tried doing it this way:
eqy1[x_]:=√(x^2+a)/; a -> 1
eqy2[x_]:=√(x^2+a)/; a -> 4
eqy3[x_]:=√(x^2+a)/; a -> 9
Plot[eqy1[x],eqy2[x],eqy3[x], {x, √a, √a+3}, PlotRange -> {-3,3}, PlotStyle->{red,green,blue}]
when i entered this ,it sent an error message saying that an option is needed beyond position 2 and all of that.
Please i need any clue, hint or help on how to input it correctly. I have only a month to learn everything i need to know in Mathematica for my final year project, and i need to get this problem before i go through. thanks