Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: integral that includes symbols
Replies: 4   Last Post: Aug 6, 2013 1:50 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Young Ryu

Posts: 138
Registered: 1/7/08
integral that includes symbols
Posted: Aug 6, 2013 7:05 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi

I have an equation: F=L*cos(theL). L is a constant. Integral of F over zero to (1/2)pi should give L. But I could not make that answer Please see below my code and help me how to fix this problem. I have much more complex equation but simplified my problem to this example.

syms L;
theL=[0+0.001:pi/1000:pi/2-0.001]
F=L*cos(theL);
trapz(theL,F)

ans: (21828504695225120901251714223243*L)/162259276829213363391578010288128 + (634496096455597832693*pi*L)/2305843009213693952000



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.