Using Maple 2018 to find coefficients in a power series
I'm doing a practical experiement and have measured the voltage over a capacitor on an oscilloscope as the capacitor decays.
I have a table of results showing the voltage and time, and created an exponential fit and a plot, using
withStatistics
entering the x,y co ordinates
ExponentialFit(X, Y, v)
This calculates $Ae^x$ but I would like to get the first four coefficients of the power series for my measured value of $e^x$.
Any help on how to do this would be much appreciated!
power-series exponential-function maple
add a comment |
I'm doing a practical experiement and have measured the voltage over a capacitor on an oscilloscope as the capacitor decays.
I have a table of results showing the voltage and time, and created an exponential fit and a plot, using
withStatistics
entering the x,y co ordinates
ExponentialFit(X, Y, v)
This calculates $Ae^x$ but I would like to get the first four coefficients of the power series for my measured value of $e^x$.
Any help on how to do this would be much appreciated!
power-series exponential-function maple
add a comment |
I'm doing a practical experiement and have measured the voltage over a capacitor on an oscilloscope as the capacitor decays.
I have a table of results showing the voltage and time, and created an exponential fit and a plot, using
withStatistics
entering the x,y co ordinates
ExponentialFit(X, Y, v)
This calculates $Ae^x$ but I would like to get the first four coefficients of the power series for my measured value of $e^x$.
Any help on how to do this would be much appreciated!
power-series exponential-function maple
I'm doing a practical experiement and have measured the voltage over a capacitor on an oscilloscope as the capacitor decays.
I have a table of results showing the voltage and time, and created an exponential fit and a plot, using
withStatistics
entering the x,y co ordinates
ExponentialFit(X, Y, v)
This calculates $Ae^x$ but I would like to get the first four coefficients of the power series for my measured value of $e^x$.
Any help on how to do this would be much appreciated!
power-series exponential-function maple
power-series exponential-function maple
edited Nov 29 '18 at 20:31
William
asked Nov 29 '18 at 20:17
WilliamWilliam
52
52
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
So, if I understand, you've found a numeric value for A
that makes A*exp(x)
fit the data.
If so, then is there a problem with substituting the parameter value into the power series for A*exp(x)
?
raw := convert(series(A*exp(x), x, 4), polynom):
lprint(raw);
A+A*x+(1/2)*A*x^2+(1/6)*A*x^3
eval(raw, A=2.134); # or what have you
2 3
2.134 + 2.134 x + 1.067000000 x + 0.3556666667 x
Or, if you already have an expression with the numeric value,
expr := 2.134*exp(x):
raw := convert(series(expr, x, 4), polynom):
lprint(raw);
2.134+2.134*x+1.067000000*x^2+.3556666667*x^3
Of course, for this example that is just A
multiplied by the series for exp(x)
.
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%2f3019144%2fusing-maple-2018-to-find-coefficients-in-a-power-series%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
So, if I understand, you've found a numeric value for A
that makes A*exp(x)
fit the data.
If so, then is there a problem with substituting the parameter value into the power series for A*exp(x)
?
raw := convert(series(A*exp(x), x, 4), polynom):
lprint(raw);
A+A*x+(1/2)*A*x^2+(1/6)*A*x^3
eval(raw, A=2.134); # or what have you
2 3
2.134 + 2.134 x + 1.067000000 x + 0.3556666667 x
Or, if you already have an expression with the numeric value,
expr := 2.134*exp(x):
raw := convert(series(expr, x, 4), polynom):
lprint(raw);
2.134+2.134*x+1.067000000*x^2+.3556666667*x^3
Of course, for this example that is just A
multiplied by the series for exp(x)
.
add a comment |
So, if I understand, you've found a numeric value for A
that makes A*exp(x)
fit the data.
If so, then is there a problem with substituting the parameter value into the power series for A*exp(x)
?
raw := convert(series(A*exp(x), x, 4), polynom):
lprint(raw);
A+A*x+(1/2)*A*x^2+(1/6)*A*x^3
eval(raw, A=2.134); # or what have you
2 3
2.134 + 2.134 x + 1.067000000 x + 0.3556666667 x
Or, if you already have an expression with the numeric value,
expr := 2.134*exp(x):
raw := convert(series(expr, x, 4), polynom):
lprint(raw);
2.134+2.134*x+1.067000000*x^2+.3556666667*x^3
Of course, for this example that is just A
multiplied by the series for exp(x)
.
add a comment |
So, if I understand, you've found a numeric value for A
that makes A*exp(x)
fit the data.
If so, then is there a problem with substituting the parameter value into the power series for A*exp(x)
?
raw := convert(series(A*exp(x), x, 4), polynom):
lprint(raw);
A+A*x+(1/2)*A*x^2+(1/6)*A*x^3
eval(raw, A=2.134); # or what have you
2 3
2.134 + 2.134 x + 1.067000000 x + 0.3556666667 x
Or, if you already have an expression with the numeric value,
expr := 2.134*exp(x):
raw := convert(series(expr, x, 4), polynom):
lprint(raw);
2.134+2.134*x+1.067000000*x^2+.3556666667*x^3
Of course, for this example that is just A
multiplied by the series for exp(x)
.
So, if I understand, you've found a numeric value for A
that makes A*exp(x)
fit the data.
If so, then is there a problem with substituting the parameter value into the power series for A*exp(x)
?
raw := convert(series(A*exp(x), x, 4), polynom):
lprint(raw);
A+A*x+(1/2)*A*x^2+(1/6)*A*x^3
eval(raw, A=2.134); # or what have you
2 3
2.134 + 2.134 x + 1.067000000 x + 0.3556666667 x
Or, if you already have an expression with the numeric value,
expr := 2.134*exp(x):
raw := convert(series(expr, x, 4), polynom):
lprint(raw);
2.134+2.134*x+1.067000000*x^2+.3556666667*x^3
Of course, for this example that is just A
multiplied by the series for exp(x)
.
answered Nov 29 '18 at 22:19
aceracer
3,640199
3,640199
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
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%2f3019144%2fusing-maple-2018-to-find-coefficients-in-a-power-series%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