Results 1 to 4 of 4

Thread: 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
    21,782
    Thanks
    2824
    Awards
    1
    You do realize that the second of the two is the correct answer?
    In the first case the Maple is treating $\displaystyle \sin^2$ as a constant no different from the $\displaystyle \pi$ in $\displaystyle \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
    21,782
    Thanks
    2824
    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 $\displaystyle \sin(x)$ as a function.
    It does not recognize $\displaystyle \sin\,x$ as a function.
    And I agree with that convention.
    Any properly written function should include () or [].

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

Similar Math Help Forum Discussions

  1. Replies: 0
    Last Post: Nov 30th 2011, 02:25 PM
  2. Correct syntax
    Posted in the Discrete Math Forum
    Replies: 1
    Last Post: Sep 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: Aug 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