November 20 2013
Please have a visit of this qestion `http://math.stackexchange.com/q/574843/8581`. I did a very elementary attempt there for example for a function:
h := x->piecewise(x < -2, x+3, x <= 2, 5-x^2, 3-x):
a:= plot(h(x), x = 0 .. 10, color = red, thickness = 3):
b:= plot(t(x), x = -10 .. 0, color = green, thickness = 3):
But I am eager to know the formal codes if they exists. Thanks for your time.
November 17 2013
i have a piecewise like " g "
g := piecewise(0 <= t and t <= 0.2e-1, 122.63, 0.2e-1 < t and t < .287, 0, .287 <= t and t <= .307, 122.63, .307 < t and t < .335, 0); plot(g, t = 0 .. .335)
this function is semi periodic just for 10 times consecutive . i want to define it
example k=[g g g g g g g g g g g ] or somthing like that.
i want to plot fft form of final piecewise function
and then filter it . and plot them.
hi maplefriends, i´m trying to solve a piecewise funtion, and gold is find the maximum and location, for that i use de package Maximize.unfortunately the result i have is the local maximum, can anyone show me, how can i do that? > > Download maximize_abs.mwbest regards
I have a question about converting a continuous piecewise function to Heaviside function, which the function includes trunc() in its conditions.
(I found differentiating piecewise function gives me "undefined" at boundary)
When I do that operation (convert(piecewisefunc, Heaviside)) I get the error below.
"Error, (in piecewise/simprootsstep) cannot determine if this expression is true or false: 0 < 183.3333333*Pi"
I'm new to Maple and I was wondering how to input and solve a piecewise function composed of (1) three functions, and (2) more than three functions.
Txs in advance!
I try to make the inverse of a one to one piecewise function, but the solve command gives a function of lists. How can I avoid this?
f := x -> piecewise( x<=1, (x-1)/2, x<2, -3*(x-1)+3, 2*(x-2)+3 ):
solve( f(x)=y, x ): g := unapply(%,y): lprint(g(x));
piecewise(x <= 0, [1+2*x], x < 3, [2-(1/3)*x], 3 <= x, [1/2+(1/2)*x])
I have a function yp(x) made up of the sum of N functions yi(x) defined on subregions. For N = 3
yp := piecewise(x > 0 and x<=x1, y1(x), x > x1 and x<=x2, y2(x) , x > x2 and x<=x3, y3(x));
The cordinates x1, x2,... and the functions y1, y2,... are calculated in a particular run and N can be large and varies from run to run. Hence explicitly writing yp as above is not possible.
It's interesting that every continuous piecewise linear function can be specified by one explicit equation with absolute values. The procedure JoggedLine carries out such conversion.
Formal arguments of the procedure:
A - a list of the coordinates of the vertices of the polyline or the continuous piecewise linear expression defined on the entire real axis.
B (optional) - a point on the left "tail"...
February 24 2013
Hi everyone, I'm new to the forum and also new to Maple.
I am trying to do the following:
"Write a procedure, marks, to take a student’s mark and output the appropriate grade, based on the following table:"
I'm trying to plot the function (5*x)/(x^2-4) highlighting all of its characteristics (maxima, minima, convexity, concavity...). I would like to plot this function in different colors in accordance with the different intervals of concavity and convexity. In order to do this, I have tried to use the piecewise function, as shown on another question (http://www.mapleprimes.com/posts/43593-Piecewise--Color). However, I feel I haven't understood...
I used MapleSim to obtain system's equation by "Equation Extraction."
In the equation, there is a strange command displayed as "preopt" and I have no idea know what this command does.
This command appears in piecewise that contains roots.
I used helps (both Maple's help and the help on the website) and googles but still don't get any idea.
Can anyone tell me what "preopt" command is?
I want to claculate a triple integral of a piecewise function. The piecewise function has 17 domains and I guess that this is a bit too much.
Is there any possibility to optimize it?
the piecewisefunction looks like this:
a := unapply(piecewise(
x1 < 0 or x2 < 0 or x3 < 0 or h < x1 or h < x2 or h < x3, 0,
0.5*h <= x1 and x1 <= h and h-x1 <= x2 and x2 <= x1 and h-x1 <= x3 and x3 <= x1, A1,
November 07 2012
I need help to plot a sequence of the form given in the attachment below
I have a piecewise defined function alpha. Its functional directives are stored in a vector A. But when I call up the command
x1 < 0 , A,
0< x1<1 A, ...):,
the result (x1,x2,x3)->piecewise(.... , A, ...) remains symbolic. What can I do that the entries of A[i] appear in the functional directive?
#hi guys i have a new challenge. and i need your help again, my problem is to map a piecewise function and #evaluate with a matriz. thus
A := LinearAlgebra:-RandomMatrix(2, 3);
B := piecewise(a+b < x, a.x+b^2, a+b < x and x < a^2+b, x^2.b+a.x);
A := convert(A, listlist):
#this is my last try to do that.
LL := map(((proc (a, b) ->( a+b < x, (a.x+b^2)/(a+b), a+b < x and x < a^2+b, x^2.b+a)@op), %):