$int _ { 0 } ^ { L } left{ left( int _ { 0 } ^ { x } f ( y ) d y right) left( int _ { 0 } ^ { x } g ( z ) d z...
$begingroup$
As in the title,
What I wanna do is
$int _ { 0 } ^ { L } left{ left( int _ { 0 } ^ { x } f ( y ) d y right) left( int _ { 0 } ^ { x } g ( z ) d z right) right} d x$
Here, functions f and g are arbitrary ones, x is a variable, and L is a constant number.
I can do this numerically. But It takes so much computation costs.
Therefore, I'd like to convert this formula to a simpler form before doing numerical computation. (I think the integral by parts can be a key but I have no idea how/where I should apply it)
Are there any clever ways to do this?
integration
$endgroup$
add a comment |
$begingroup$
As in the title,
What I wanna do is
$int _ { 0 } ^ { L } left{ left( int _ { 0 } ^ { x } f ( y ) d y right) left( int _ { 0 } ^ { x } g ( z ) d z right) right} d x$
Here, functions f and g are arbitrary ones, x is a variable, and L is a constant number.
I can do this numerically. But It takes so much computation costs.
Therefore, I'd like to convert this formula to a simpler form before doing numerical computation. (I think the integral by parts can be a key but I have no idea how/where I should apply it)
Are there any clever ways to do this?
integration
$endgroup$
$begingroup$
What numerical algorithm are you using? The formula is already "simple".
$endgroup$
– user8469759
Jan 30 at 9:09
$begingroup$
I'm using the Gaussian quadrature. But, I need much more matrix computations than those I needed for solving just normal integral such as int(f(x),0,L).
$endgroup$
– Sinwoo Jeong
Jan 30 at 9:17
$begingroup$
I don't see the problem, It's a single for loop unless I'm missing something.
$endgroup$
– user8469759
Jan 30 at 9:21
$begingroup$
@SinwooJeong It shouldn't take meaningfully longer than a single integral. Going from $int_0^x ldots$ to $int_0^{x+dx} ldots$ just requires adding one evaluation of $ldots$ to the former...
$endgroup$
– Solomonoff's Secret
Jan 30 at 9:33
add a comment |
$begingroup$
As in the title,
What I wanna do is
$int _ { 0 } ^ { L } left{ left( int _ { 0 } ^ { x } f ( y ) d y right) left( int _ { 0 } ^ { x } g ( z ) d z right) right} d x$
Here, functions f and g are arbitrary ones, x is a variable, and L is a constant number.
I can do this numerically. But It takes so much computation costs.
Therefore, I'd like to convert this formula to a simpler form before doing numerical computation. (I think the integral by parts can be a key but I have no idea how/where I should apply it)
Are there any clever ways to do this?
integration
$endgroup$
As in the title,
What I wanna do is
$int _ { 0 } ^ { L } left{ left( int _ { 0 } ^ { x } f ( y ) d y right) left( int _ { 0 } ^ { x } g ( z ) d z right) right} d x$
Here, functions f and g are arbitrary ones, x is a variable, and L is a constant number.
I can do this numerically. But It takes so much computation costs.
Therefore, I'd like to convert this formula to a simpler form before doing numerical computation. (I think the integral by parts can be a key but I have no idea how/where I should apply it)
Are there any clever ways to do this?
integration
integration
edited Jan 30 at 10:11
YuiTo Cheng
2,1863937
2,1863937
asked Jan 30 at 8:30
Sinwoo JeongSinwoo Jeong
32
32
$begingroup$
What numerical algorithm are you using? The formula is already "simple".
$endgroup$
– user8469759
Jan 30 at 9:09
$begingroup$
I'm using the Gaussian quadrature. But, I need much more matrix computations than those I needed for solving just normal integral such as int(f(x),0,L).
$endgroup$
– Sinwoo Jeong
Jan 30 at 9:17
$begingroup$
I don't see the problem, It's a single for loop unless I'm missing something.
$endgroup$
– user8469759
Jan 30 at 9:21
$begingroup$
@SinwooJeong It shouldn't take meaningfully longer than a single integral. Going from $int_0^x ldots$ to $int_0^{x+dx} ldots$ just requires adding one evaluation of $ldots$ to the former...
$endgroup$
– Solomonoff's Secret
Jan 30 at 9:33
add a comment |
$begingroup$
What numerical algorithm are you using? The formula is already "simple".
$endgroup$
– user8469759
Jan 30 at 9:09
$begingroup$
I'm using the Gaussian quadrature. But, I need much more matrix computations than those I needed for solving just normal integral such as int(f(x),0,L).
$endgroup$
– Sinwoo Jeong
Jan 30 at 9:17
$begingroup$
I don't see the problem, It's a single for loop unless I'm missing something.
$endgroup$
– user8469759
Jan 30 at 9:21
$begingroup$
@SinwooJeong It shouldn't take meaningfully longer than a single integral. Going from $int_0^x ldots$ to $int_0^{x+dx} ldots$ just requires adding one evaluation of $ldots$ to the former...
$endgroup$
– Solomonoff's Secret
Jan 30 at 9:33
$begingroup$
What numerical algorithm are you using? The formula is already "simple".
$endgroup$
– user8469759
Jan 30 at 9:09
$begingroup$
What numerical algorithm are you using? The formula is already "simple".
$endgroup$
– user8469759
Jan 30 at 9:09
$begingroup$
I'm using the Gaussian quadrature. But, I need much more matrix computations than those I needed for solving just normal integral such as int(f(x),0,L).
$endgroup$
– Sinwoo Jeong
Jan 30 at 9:17
$begingroup$
I'm using the Gaussian quadrature. But, I need much more matrix computations than those I needed for solving just normal integral such as int(f(x),0,L).
$endgroup$
– Sinwoo Jeong
Jan 30 at 9:17
$begingroup$
I don't see the problem, It's a single for loop unless I'm missing something.
$endgroup$
– user8469759
Jan 30 at 9:21
$begingroup$
I don't see the problem, It's a single for loop unless I'm missing something.
$endgroup$
– user8469759
Jan 30 at 9:21
$begingroup$
@SinwooJeong It shouldn't take meaningfully longer than a single integral. Going from $int_0^x ldots$ to $int_0^{x+dx} ldots$ just requires adding one evaluation of $ldots$ to the former...
$endgroup$
– Solomonoff's Secret
Jan 30 at 9:33
$begingroup$
@SinwooJeong It shouldn't take meaningfully longer than a single integral. Going from $int_0^x ldots$ to $int_0^{x+dx} ldots$ just requires adding one evaluation of $ldots$ to the former...
$endgroup$
– Solomonoff's Secret
Jan 30 at 9:33
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
It seems very straightforward as it is... For general functions $f,g$ there is no way of simplifying the expression. From the numerical point of view, taking a regular decomposition of $[0,L]$ and some numerical quadrature $int_0^L h(x) dx approx sum_{i=1}^n w_i f_i$, you just have to implement the expression
$$
sum_{i=1}^n left(w_i left(sum_{j=1}^{i} w_j f_jright) left(sum_{j=1}^{i} w_j g_jright) right)
$$
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3093253%2fint-0-l-left-left-int-0-x-f-y-d-y-right-l%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
It seems very straightforward as it is... For general functions $f,g$ there is no way of simplifying the expression. From the numerical point of view, taking a regular decomposition of $[0,L]$ and some numerical quadrature $int_0^L h(x) dx approx sum_{i=1}^n w_i f_i$, you just have to implement the expression
$$
sum_{i=1}^n left(w_i left(sum_{j=1}^{i} w_j f_jright) left(sum_{j=1}^{i} w_j g_jright) right)
$$
$endgroup$
add a comment |
$begingroup$
It seems very straightforward as it is... For general functions $f,g$ there is no way of simplifying the expression. From the numerical point of view, taking a regular decomposition of $[0,L]$ and some numerical quadrature $int_0^L h(x) dx approx sum_{i=1}^n w_i f_i$, you just have to implement the expression
$$
sum_{i=1}^n left(w_i left(sum_{j=1}^{i} w_j f_jright) left(sum_{j=1}^{i} w_j g_jright) right)
$$
$endgroup$
add a comment |
$begingroup$
It seems very straightforward as it is... For general functions $f,g$ there is no way of simplifying the expression. From the numerical point of view, taking a regular decomposition of $[0,L]$ and some numerical quadrature $int_0^L h(x) dx approx sum_{i=1}^n w_i f_i$, you just have to implement the expression
$$
sum_{i=1}^n left(w_i left(sum_{j=1}^{i} w_j f_jright) left(sum_{j=1}^{i} w_j g_jright) right)
$$
$endgroup$
It seems very straightforward as it is... For general functions $f,g$ there is no way of simplifying the expression. From the numerical point of view, taking a regular decomposition of $[0,L]$ and some numerical quadrature $int_0^L h(x) dx approx sum_{i=1}^n w_i f_i$, you just have to implement the expression
$$
sum_{i=1}^n left(w_i left(sum_{j=1}^{i} w_j f_jright) left(sum_{j=1}^{i} w_j g_jright) right)
$$
answered Jan 30 at 9:18
PierreCarrePierreCarre
1,690212
1,690212
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3093253%2fint-0-l-left-left-int-0-x-f-y-d-y-right-l%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
What numerical algorithm are you using? The formula is already "simple".
$endgroup$
– user8469759
Jan 30 at 9:09
$begingroup$
I'm using the Gaussian quadrature. But, I need much more matrix computations than those I needed for solving just normal integral such as int(f(x),0,L).
$endgroup$
– Sinwoo Jeong
Jan 30 at 9:17
$begingroup$
I don't see the problem, It's a single for loop unless I'm missing something.
$endgroup$
– user8469759
Jan 30 at 9:21
$begingroup$
@SinwooJeong It shouldn't take meaningfully longer than a single integral. Going from $int_0^x ldots$ to $int_0^{x+dx} ldots$ just requires adding one evaluation of $ldots$ to the former...
$endgroup$
– Solomonoff's Secret
Jan 30 at 9:33