Bendesarts

440 Reputation

10 Badges

14 years, 274 days

MaplePrimes Activity


These are questions asked by Bendesarts

Hello,

I would like to build a periodic function based on the function x-->x².

For x belonging to [0,2], the function is defined like this :

 

And for the rest of the domain in R, the function should be periodic with a period of 2.

In other words, I would like to define a function which permits me to obtain this plot :

 

Sorry, for my picture which is very ugly, but it should enable to explain what I'm looking for.

1) Is a new piecewise function based on f function is the better solution to create this kind of periodic function ?

2) I didn't find or understand with the help how i can create "infinite" piecewise function. May you help me to define this kind of piecewise function ?

Thanks a lot for your help.

P.S: With the term "nested" in my title I only want to say that I want to apply another piecewise function (for example g) on a already created function (for example f). this term may be not very appropriated.

 

 

Hello,

I would like to build this piecewise function :

 

I try this manner :

f:=x->piecewise(x=>0 and x <= 1, x^2,x > 1 and x<=2, (2-x)^2);

But, it doesn't work. I receive the following error message :

Error, `>` unexpected

Do you have some ideas about my mistake?

Thank you for your help.

Hello,

I have a vector with 4 components. Each component is a polynom.

N := Vector[row](4, {(1) = -(1/2)*t^3+t^2-(1/2)*t, (2) = (3/2)*t^3-(5/2)*t^2+1, (3) = -(3/2)*t^3+2*t^2+(1/2)*t, (4) = (1/2)*t^3-(1/2)*t^2});
N[1]+N[2]+N[3]+N[4];
sum(N[i], i = 1..4);

I don't why the function sum doesn't work in this case. If i do the sum like this N[1]+N[2]+N[3]+N[4];, it works but it doesn't work with the use of the sum function.

Thank you for your help.

Hello,

I have a little question which is in the title.

It seems to me at the view of this example :

[x[i], y[i]] $ i=1..4;

seq([x[i], y[i]],i=1..4);

May you give me your feedback to be sure ?

Thank you 

Hello,

I try to use a Catmull-Rom spline which has to match on several points.

I use a code extracted from the book "Geometry and curves with maple".

Here you can find an extract which is visible from google book :

I have slightly modified the initial procedure crom_2d. I didn't find the error in my procedure. May you help me to find the blocking point of my procedure ?

Here I attached my code:

CalculSplineMatmull-Rom.mw

Thank you for your help.

First 13 14 15 16 17 18 19 Last Page 15 of 33