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

In mathematica

  1. Jun 5, 2007 #1
    plz help in mathematica

    hello everyone. i am very new on mathematica.I have 2 problem :( at first, i have to eavluate the numerical equivalent of tan(45/Pi+Pi/45) when i wrote on mathematica like this:
    In[21]:=
    Tan[45/Pi+Pi/45]
    Out[21]=
    \!\(Tan[45\/π + π\/45]\)

    it gives me that one. can not i get a real number from this?It doesnt solve tangent.i tried Solve[..] or Evaluate[..] but both they didnt work. And secondly how can i find the are of the region enclosed by the curves : y+45(x+45)=0 and y-x^3/45+45=0 ? i really dont have any idea about this. thanks for your helps from now.. it is very urgent i hope someone could help me :(
     
  2. jcsd
  3. Jun 5, 2007 #2

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Either put "// N" at the end of your expression, or, equivalently, wrap your expression into a call to N like this:

    N[ Tan[45/Pi + Pi/45], 50]

    This will give you fifty decimal places of precision, which is more than you'll need, I assume.

    As for your second question, you'll need to use the Integrate function.

    - Warren
     
  4. Jun 5, 2007 #3
    thank you so much chroot... i have done the first one. but i m really new on this mathematica. how can i use integral? i know i have to use. and i think it will be double integral. but how will i find the points of the integral? Could you plz help me ? :) thank you from now on
     
  5. Jun 5, 2007 #4

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Well, the first step is to plot the two curves, so you know what you're dealing with.

    Plot[ y+45(x+45) == 0, {x, -100, 100} ]

    will plot the first function from x = -100 to x = 100. Note that there are two equal signs in there. You need to use two equal signs to express equality in Mathematica. (Single equal signs are used for variable assignments.)

    You can plot many equations at once by putting a list of equations in { }, like this:

    Plot[ { equation == 0, equation == 0 }, {x, -100, 100} ]

    See if you can plot your two equations on the same graph, and look at the area between them. From what I can tell, you have not provided the complete question here.

    - Warren

    p.s. You need to look up the Integrate function in Mathematica's help, and try it for yourself, before I will help you with it.
     
  6. Jun 5, 2007 #5
    thanks chroot :) these are really helpful informations :)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: In mathematica
  1. Mathematica NDSolve (Replies: 3)

  2. Mathematica and Sums (Replies: 4)

  3. Mathematica Sums (Replies: 6)

  4. Mathematica NDSolve (Replies: 27)

Loading...