Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15449 > unrolled thread

Re: multiintegral and table

Started by"djmpark" <djmpark@comcast.net>
First post2013-09-15 11:01 +0000
Last post2013-09-15 11:01 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: multiintegral and table "djmpark" <djmpark@comcast.net> - 2013-09-15 11:01 +0000

#15449 — Re: multiintegral and table

From"djmpark" <djmpark@comcast.net>
Date2013-09-15 11:01 +0000
SubjectRe: multiintegral and table
Message-ID<l1441q$ps0$1@smc.vnet.net>
I don't know if your example is a simplified version of something more
general. In any case you can simplify things before you get to the plotting.
Specifically you can evaluate the integrals and arrive at a simple
expression that you can plot with the much easier Plot statement.

f1 = Integrate[2*y + x^2, {x, 0, 1}, {y, 0, x}] 
7/12

f2[q_] = Integrate[2*y + x^2*q, {x, 0, 1}, {y, 0, x}] 
1/3 + q/4 

ftotal[q_] = f1 + f2[q] 
11/12 + q/4 

Plot[ftotal[q], {q, 0, 10}]


David Park
djmpark@comcast.net 
http://home.comcast.net/~djmpark/index.html 




From: Parada Hutauruk [mailto:phutauruk@gmail.com] 

Dear all,

I have a function

f_1 [x_,y_] = Integrate[2*y + x^2, {x,0,1},{y,0,x}]

f_2 [x_,y_,Q_] = Integrate[2*y +x^2*Q, {x,0,1},{y,0,x}]

f_total [x_,y_,Q_] = f_1[x,y] + f_2[x,y,Q]

Then I want to plot the f total using table with Q start from 0 to 10 with
increment 0.0025.

I have defined by

dataxx = Table[{Q,f_total[x,y,Q]}, {Q, 0,10, 0.0025}]

And Plot the data on the table by

ListPlot[dataxx]

But when I evaluate the function, it took a long time and the plot is not
yielded. Could anyone help me please to find the bug? I really appreciate
for help.

Thanks,
PTPH

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web