How to write equations ?
Mostrar comentarios más antiguos
Hi,
I want to write this equation:

and also to to write the all element of that equation.
The equation is:
fullsimplify[series[sqrt(1+X), {x,0,3}]].
The element should be as:
1+x/2-x^2/8+x^3/16+O[x]^4/
Can someone guide how to write it in MATLAB code?
Thanks,
Ron
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 23 de Dic. de 2017
Editada: Image Analyst
el 23 de Dic. de 2017
What does "O[]^4/" mean???
Anyway, start here:
for x = 0 : 3
s(x+1) = 1+x/2-x^2/8+x^3/16
end
plot(s, 'b*-', 'LineWidth', 2);
grid on;
xlabel('x', 'FontSize', 20);
ylabel('s', 'FontSize', 20);
Adapt as needed. Like maybe after you have s, do
series = sqrt(1+s)
I didn't use X because we've already used lower case x and using both upper case X and lower case X would be confusing.
3 comentarios
Image Analyst
el 23 de Dic. de 2017
Editada: Image Analyst
el 23 de Dic. de 2017
OK, so now what does "O[x]^4/" mean? Is that zero times x to the fourth power divided by (some missing denominator)?
When you say "The element should be as:" do you mean that EACH element is that, so plus in 0 for x for the first term, plug in 1 for x for the second term, and so on? OR do you mean that that is is the first 5 terms, so 1 for was x=0, the second term is x/2 = 1/2 when x=1, and the third term is x^2/8 = 2^2/8 = 4/8 = 1/2 when x is 2, and so on?
Actually, can you just post a photo of the series because I'm not sure you can describe it unambiguously and I'd like to just see the standard mathematical notation?
Walter Roberson
el 23 de Dic. de 2017
Editada: Image Analyst
el 25 de Dic. de 2017
The image that is shown in the original Question

is Mathematica code. The O[x]^4 is the Mathematica way of indicating that the series has been truncated at order 4 and that you need to add to the series some value that is proportional to x^4
Categorías
Más información sobre Calculus en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!