Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Integration of If Conditions' topicStudent Support Forum > General > "Integration of If Conditions"

Next Comment >Help | Reply To Topic
Author Comment/Response
Sebastian Schwab
03/11/08 07:31am

Hi,

First of all, I'm quite a Newbie with integration at all but after hours of reading and trying I don't get any further.

I programmed a notebook with some if conditions and wanted to integrate it, but the only thing it shows me ist Out=0.

Here's the notebook:

n:=1
tu:=50
tn:=n*tu
phi:=2*Pi*t/tu
Rs:=92
Rt:=209.5
Flow:=92.73*E^(-0.011*z)/10000
z:=xT-x
xT:=390
x:=Rs*Cos[4.1*Phi]+Rt*Cos[phi]

Flow1:=If[x<0, 0, Flow]
Flow2:=If[x<Rt*Cos[phi], 0, Flow]
realFlow:=If[Flow1==Flow2!=0, Flow, 0]

Plot[{Flow, realFlow}, {t, 0, tn}, PlotRange->{{0, tn}, {0.004, 0}}]



The plot works fine. realFlow only shows the areas where "Flow1 and Flow2" condition is complied. But when I try to Integrate that fine looking plot it doesn't get me a useful output:


NIntegrate[realFlow, {t, 0, tn}]


A non numerical solution would be way better but seems not to work on my computer.


Hope for help!

URL: ,

Subject (listing for 'Integration of If Conditions')
Author Date Posted
Integration of If Conditions Sebastian Sc... 03/11/08 07:31am
Re: Integration of If Conditions Xavier 03/11/08 3:30pm
Re: Re: Integration of If Conditions Sebastian Sc... 03/11/08 5:13pm
Re: Re: Integration of If Conditions Sebastian Sc... 03/12/08 08:26am
Re: Integration of If Conditions Xavier 03/14/08 1:47pm
Re: Integration of If Conditions Sebastian Sc... 03/17/08 02:39am
Re: Re: Integration of If Conditions Xavier 03/18/08 07:44am
Re: Re: Re: Integration of If Conditions Sebasitan Sc... 03/26/08 03:08am
Re: Re: Re: Integration of If Conditions Sebastian Sc... 03/26/08 04:35am
Re: Re: Re: Integration of If Conditions Sebastian Sc... 03/26/08 05:49am
Next Comment >Help | Reply To Topic