Integrating using Simpson's Rule

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












Suppose there are functions



$$ g(x) = frac(2 cdot lfloor xrfloor)(3cdot x - lfloor x rfloor) tag1$$



and



$$ f(x) =fracmid g(x)mid g(x) tag2 $$



Now how do we do the definite integral of $f(x)$ with limits $-10$ to $0$ using Simpson's rule.



Simpson's Rule states that integral of $f(x)$ limited from $a$ to $b$ is approx equal to



$$ fracb-a6 cdot left[f(b) + 4 cdot fleft(fraca+b2right) + f(a) right] tag3$$



Putting $ f(0)$ returns an indeterminant value in the form of $0/0$ which cannot be used to carry out further Calculations. Hence what are we supposed to do in such a scenario?










share|cite|improve this question























  • hi .. what have you done so far ?
    – Ahmad Bazzi
    Sep 11 at 4:28










  • In the part in Simpson's rule where you have to calculate f(upper limit), I am getting problem as putting 0 in the function returns an indeterminant value
    – Jagreet
    Sep 11 at 4:30










  • Do you think you can edit your question to show more precisely what you mean ?
    – Ahmad Bazzi
    Sep 11 at 4:38










  • Question edited
    – Jagreet
    Sep 11 at 4:43










  • Please format your equations with MathJax.
    – paulplusx
    Sep 11 at 5:23















up vote
1
down vote

favorite












Suppose there are functions



$$ g(x) = frac(2 cdot lfloor xrfloor)(3cdot x - lfloor x rfloor) tag1$$



and



$$ f(x) =fracmid g(x)mid g(x) tag2 $$



Now how do we do the definite integral of $f(x)$ with limits $-10$ to $0$ using Simpson's rule.



Simpson's Rule states that integral of $f(x)$ limited from $a$ to $b$ is approx equal to



$$ fracb-a6 cdot left[f(b) + 4 cdot fleft(fraca+b2right) + f(a) right] tag3$$



Putting $ f(0)$ returns an indeterminant value in the form of $0/0$ which cannot be used to carry out further Calculations. Hence what are we supposed to do in such a scenario?










share|cite|improve this question























  • hi .. what have you done so far ?
    – Ahmad Bazzi
    Sep 11 at 4:28










  • In the part in Simpson's rule where you have to calculate f(upper limit), I am getting problem as putting 0 in the function returns an indeterminant value
    – Jagreet
    Sep 11 at 4:30










  • Do you think you can edit your question to show more precisely what you mean ?
    – Ahmad Bazzi
    Sep 11 at 4:38










  • Question edited
    – Jagreet
    Sep 11 at 4:43










  • Please format your equations with MathJax.
    – paulplusx
    Sep 11 at 5:23













up vote
1
down vote

favorite









up vote
1
down vote

favorite











Suppose there are functions



$$ g(x) = frac(2 cdot lfloor xrfloor)(3cdot x - lfloor x rfloor) tag1$$



and



$$ f(x) =fracmid g(x)mid g(x) tag2 $$



Now how do we do the definite integral of $f(x)$ with limits $-10$ to $0$ using Simpson's rule.



Simpson's Rule states that integral of $f(x)$ limited from $a$ to $b$ is approx equal to



$$ fracb-a6 cdot left[f(b) + 4 cdot fleft(fraca+b2right) + f(a) right] tag3$$



Putting $ f(0)$ returns an indeterminant value in the form of $0/0$ which cannot be used to carry out further Calculations. Hence what are we supposed to do in such a scenario?










share|cite|improve this question















Suppose there are functions



$$ g(x) = frac(2 cdot lfloor xrfloor)(3cdot x - lfloor x rfloor) tag1$$



and



$$ f(x) =fracmid g(x)mid g(x) tag2 $$



Now how do we do the definite integral of $f(x)$ with limits $-10$ to $0$ using Simpson's rule.



Simpson's Rule states that integral of $f(x)$ limited from $a$ to $b$ is approx equal to



$$ fracb-a6 cdot left[f(b) + 4 cdot fleft(fraca+b2right) + f(a) right] tag3$$



Putting $ f(0)$ returns an indeterminant value in the form of $0/0$ which cannot be used to carry out further Calculations. Hence what are we supposed to do in such a scenario?







definite-integrals simpsons-rule






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Sep 11 at 7:20









José Carlos Santos

136k17109199




136k17109199










asked Sep 11 at 4:27









Jagreet

123




123











  • hi .. what have you done so far ?
    – Ahmad Bazzi
    Sep 11 at 4:28










  • In the part in Simpson's rule where you have to calculate f(upper limit), I am getting problem as putting 0 in the function returns an indeterminant value
    – Jagreet
    Sep 11 at 4:30










  • Do you think you can edit your question to show more precisely what you mean ?
    – Ahmad Bazzi
    Sep 11 at 4:38










  • Question edited
    – Jagreet
    Sep 11 at 4:43










  • Please format your equations with MathJax.
    – paulplusx
    Sep 11 at 5:23

















  • hi .. what have you done so far ?
    – Ahmad Bazzi
    Sep 11 at 4:28










  • In the part in Simpson's rule where you have to calculate f(upper limit), I am getting problem as putting 0 in the function returns an indeterminant value
    – Jagreet
    Sep 11 at 4:30










  • Do you think you can edit your question to show more precisely what you mean ?
    – Ahmad Bazzi
    Sep 11 at 4:38










  • Question edited
    – Jagreet
    Sep 11 at 4:43










  • Please format your equations with MathJax.
    – paulplusx
    Sep 11 at 5:23
















hi .. what have you done so far ?
– Ahmad Bazzi
Sep 11 at 4:28




hi .. what have you done so far ?
– Ahmad Bazzi
Sep 11 at 4:28












In the part in Simpson's rule where you have to calculate f(upper limit), I am getting problem as putting 0 in the function returns an indeterminant value
– Jagreet
Sep 11 at 4:30




In the part in Simpson's rule where you have to calculate f(upper limit), I am getting problem as putting 0 in the function returns an indeterminant value
– Jagreet
Sep 11 at 4:30












Do you think you can edit your question to show more precisely what you mean ?
– Ahmad Bazzi
Sep 11 at 4:38




Do you think you can edit your question to show more precisely what you mean ?
– Ahmad Bazzi
Sep 11 at 4:38












Question edited
– Jagreet
Sep 11 at 4:43




Question edited
– Jagreet
Sep 11 at 4:43












Please format your equations with MathJax.
– paulplusx
Sep 11 at 5:23





Please format your equations with MathJax.
– paulplusx
Sep 11 at 5:23
















active

oldest

votes











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',
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
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2912741%2fintegrating-using-simpsons-rule%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2912741%2fintegrating-using-simpsons-rule%23new-answer', 'question_page');

);

Post as a guest













































































這個網誌中的熱門文章

Is there any way to eliminate the singular point to solve this integral by hand or by approximations?

Why am i infinitely getting the same tweet with the Twitter Search API?

Solve: $(3xy-2ay^2)dx+(x^2-2axy)dy=0$