2
$\begingroup$

I have tried to solve this but my problem wasn't completely solved.I want to plot a function f(t_) := {1,t,0} using the metric g = {{y^2, 0, y}, {0, exp[z], 0}, {y, 0, 1}}. Here is the coding in Mathematica which was i have tried for plotting a function f(t_) := {1,t,0} but it doesn't shows the plot of a function.

metric[x_,y_,z_] := {{y^2, 0, y}, {0, exp[z], 0}, {y, 0, 1}}

ParametricPlot3D[metric[1,t,0], {t, 0, 5}, PlotStyle -> {Hue[.6],  
Thickness[.02]}]

enter image description here

Could someone please give me some pointers on how to do this?

$\endgroup$
2
  • 1
    $\begingroup$ Use Exp in place of exp (uppercase the letter E). $\endgroup$
    – creidhne
    Commented Sep 17, 2016 at 5:27
  • $\begingroup$ Welcome! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour and check the faqs! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! $\endgroup$
    – user9660
    Commented Sep 17, 2016 at 7:09

1 Answer 1

1
$\begingroup$

Built-in symbols have names beginning with capital letters, see Wolfram Language Syntax and Language Overview, also The Four Kinds of Bracketing in the Wolfram Language, Some General Notations and Conventions, Wolfram Predictive Interface.

metric[x_, y_, z_] := {{y^2, 0, y}, {0, Exp[z], 0}, {y, 0, 1}}

ParametricPlot3D[metric[1, t, 0], {t, -1, 5}, 
PlotStyle -> {Hue[.6], Thickness[.02]}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.