Results 1 to 4 of 4

Math Help - trig integrals and maple syntax

  1. #1
    Junior Member
    Joined
    Aug 2008
    Posts
    38

    trig integrals and maple syntax

    Hello there,

    I know sin^2(x) = (sin(x))^2, but when I integrate each of those Maple is giving me a different answer. A picture is linked. Much thanks.

    David

    Picasa Web Albums - David - maple
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor

    Joined
    Aug 2006
    Posts
    18,610
    Thanks
    1574
    Awards
    1
    You do realize that the second of the two is the correct answer?
    In the first case the Maple is treating \sin^2 as a constant no different from the \pi in \int {\pi \theta d\theta }  = \frac{\pi }{2}\theta ^2  + c.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    Aug 2008
    Posts
    38
    Okay, I see now.

    So I assume it's best not to use sin^2 in Maple? Is there another way I could have entered it? I don't understand why it would treat it as a constant, b/c it is attached to theta.

    Thank you.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor

    Joined
    Aug 2006
    Posts
    18,610
    Thanks
    1574
    Awards
    1
    Quote Originally Posted by 2clients View Post
    Okay, I see now.

    So I assume it's best not to use sin^2 in Maple? Is there another way I could have entered it? I don't understand why it would treat it as a constant, b/c it is attached to theta.
    Maple sees \sin(x) as a function.
    It does not recognize \sin\,x as a function.
    And I agree with that convention.
    Any properly written function should include () or [].

    If you write \ln\,2 instead \ln(2) it will not work.
    So you must use \sin(\theta).
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 0
    Last Post: November 30th 2011, 02:25 PM
  2. Correct syntax
    Posted in the Discrete Math Forum
    Replies: 1
    Last Post: September 28th 2011, 03:23 AM
  3. Stata - syntax for if exp
    Posted in the Math Software Forum
    Replies: 0
    Last Post: May 2nd 2010, 05:48 PM
  4. syntax error
    Posted in the LaTeX Help Forum
    Replies: 2
    Last Post: August 27th 2009, 05:00 AM
  5. syntax
    Posted in the LaTeX Help Forum
    Replies: 1
    Last Post: May 9th 2009, 01:30 PM

Search Tags


/mathhelpforum @mathhelpforum