Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Making comments in mathematica

  1. Mar 31, 2005 #1


    User Avatar
    Gold Member

    Ok i got a problem. Heres my mathematica file.

    Im trying to find the critical points and describe them but i dont know how to print stuff in mathematica. How can i make it say instead of like putting...

    d[x1, y1]

    to find the descriminant (i already setup the function as you can see in the file). How can I do it so the actual output will say "The discriminant of this point is" whatever the number is (in this case, 238) instead if it just spitting out the number alone? Is there like a print command? Thanks for the help :)

    Attached Files:

  2. jcsd
  3. Apr 1, 2005 #2


    User Avatar
    Gold Member

    ahhh help me guys :D
  4. Apr 1, 2005 #3


    User Avatar
    Science Advisor
    Homework Helper

    Well, I didn't look at your file, something about cookies on my machine or whatever. But you can use a Print commant in Mathematica:

    Print["The discrimant is: ",d[x1,y1]];
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Making comments mathematica Date
Matlab Making a short test for self-adjointness Feb 23, 2018
Matlab Matlab -- how to make a smooth contour plot? Jun 28, 2017
LaTeX How to make an adjusting height integral sign Mar 2, 2017
Matlab How to make 2D plot of points with different colors? Dec 13, 2016
Insights Behind the Math: Peter Krautzberger - Comments Apr 29, 2016