## 30 Reputation

10 years, 110 days

## how to cut off a term using maple?...

Maple

Hi all,
I was only wondering if there is a way how to trunk a solution using a maple command.

I want to use it to give a truncation error which is equal to :(14/45)(D^5)(y)(0) h^5

The result I am getting is as followed: (it is correct, I just want to cut off the bit with the power of 6)
........
......
>error:=expand(Yx[i+1]-Yx[i-3]-(4*h/3)*(2*f[i-2]-f[i-1]+2*f[i]));

error :=  (14/45)(D^5)(y)(0) h^5  + 7/10 (D^6)(y)(0) h^6

## looking for a maple V command that write...

Maple

Hi
how can we write a same result n-times near each other

x:=3:
for i from 1 to 4 do       # here the 4 can be a variable and can change...
x;
od;
3
3
3
3

I need the result to come in that form  :    3  ,  3  ,  3  ,  3
and because the number of times can change i can't just easily write x,x,x,x;

Maple

Hello,
I am looking here for a tutor, that can help me doing some Maple V (5) programming.
I am a mathematic student and we use Maple programming.
I will be happy to pay a small amount of money for each exercice you help me doing,

(The procedures that we usually have to write are for example:
Newton-Raphson Method, Chebyshev Polynomial,...  I don't think it is hard for you.

## post deletedddddd...

Thanks guys for your help, I know I am asking sometimes some stupid questions, I spend hours trying to do that, but when I am stock.... I need some help... and when the problem is solved I can see how unintelligent am I .

Maple V

Hi, I have a homework to do that I am strugling with:

write a procedure which uses euler's method to solve a given initial value problem.
the imput should be the differential equation and the initial value.
using this programme find y(1) if dy/dx= x^2*y^3 and y(0)=1, and use maple dsolve command to check the solution.

That is what I have managed to do, but somehow it is not working correctelly, can somebody help please?

eul:=proc(f,h,x0,y0,xn)
local no_points,x_old,x_new,y_old,y_new,i:
no_points:=round(evalf((xn-x0)/h)):
x_old:=x0:
y_old:=y0:

for i from 1 to no_points do
x_new:=x_old+h:
y_new:=y_old+evalf(h*f(x_old,y_old)):
x_old:=x_new:
y_old:=y_new:
od:
y_new:
end:

Thanks

 1 2 Page 1 of 2
﻿