## Plotting a procedure...

I am trying to plot the following procedure in the variable s_val (with p_val and pa_val at fixed values):

> Q_opt:=proc(s_val,p_val,pa_val)
> fsolve(subs(p=p_val,subs(s=s_val,subs(pa=pa_val,FOC))),Q);
> end proc:

with no luck. I have tried the following variants of plot:

(1)

> plot(subs(p_val=0,subs(pa_val=0.6,Q_opt)),s_val=0.5..0.59,axes=BOXED);

Error, (in plot) invalid plotting of procedures, perhaps you mean plot(Q_opt, .5 .. .59, axes = BOXED)

(2)

> plot(subs(p_val=0,subs(pa_val=0.6,Q_opt)),0.5..0.59,axes=BOXED);

Warning, unable to evaluate the function to numeric values in the region; see the plotting command's help page to ensure the calling sequence is correct

## Handling Piecewise FOCs in an Optimization Problem...

I have an optimization problem where my integration bounds depend on the maximizer and take the form max[1,Q+pa/2], where Q is the variable that I am maximizing with respect to.

For instance, my function U (utility), which I am maximizing is defined as follows:

U:=simplify(int(-(-d)^2,d=0..D_lbar)+int(-(-s/2)^2-s*(d-s/2),d=D_lbar..D_bar2(Q))
+int(-(Q-d)^2-s*Q,d=D_bar2(Q)..DD_bar2(Q)))+int(-(-pa/2)^2-s*Q-pa*(d-pa/2-Q),d=DD_bar2(Q)..1)

where

D_lbar:=s/2;
D_bar:=Q+s/2;
D_bar2:=Q->piecewise(Q+s/2>1,1,Q+s/2);
DD_bar2:=Q->piecewise(Q+pa/2>1,1,Q+s/2);

I get a piecewise FOC for U, with respect to Q, and I'm able to solve for the optimal Q, given the parameters s, p, and pa, using fsolve. For example:

## To plot a plane parrallel to a vector that goes th...

hello everyone, I'd really appreciate your help. I have to finish a maple assignment within a couple of days and i've been stuck on this question that wants me to find a plane parrallel to a vector that goes though a point. The instructor gave me the following example [code] Example 6. Find the equation of the plane perpendicular to the vector ( 5, 1, -2 ) and passing through the point ( 0, 1, -1 ). Make a plot of this plane. We use the point-normal form of the equation of a plane: dotprod([5,1,-2],[x-0,y-1,z-(-1)])=0; _ _ _ 5 x - 3 + y - 2 z = 0

## I want to define a function as the solution to the...

Hello, I am trying to do something very simple, or so I thought. From the solve help, I found this example: solve(x*t(x)+x^3-5, t); Now to my way of thinking, I have just solved an equation that gives me a function of x, namely t = t(x). But when I try to evaluate t at say, 3, I do not get the correct answer: t(3); gives the helpful response: t(3) How can I get this to work? Thank you.

## Assign value on array entries...

Hi, I've assigned first the entries of an array: Ecce:=array(1..2, [x,y]); then I would to set x:=0, y:=0 (obviously, this is for exemple, I've to do this whit very large array, so I cant do one entry at time) I've guessed Ecce[] := 0 but now Ecce=0, Ecce=0, x=x, y=y How I must do to assign the old entries of the array, at the next ones? Tk you S.

## Is there a way to obtain the fixed points of funct...

Is there some command to find the fixed points of a function F(y)?. As my intuition suggests me.. it would not be possible to get the the values x such that x=F(x) for a general function, but.. which commands should I look at to get the values of x for a specific F (I would like to see that in the case of x is in R4.. that is x= (x1, x2, x3,x4)? Any answer will be really appreciated. J

## Is there a way to get it to display correctly?...

If I point to a greek alpha symbol with my mouse it shows me a hint that I can type "alpha" for the same symbol. However, if I click it, it actually places the symbol in the document, but if I type the words "alpha" in the document it just leaves those words and doesn't replace them with the actual symbol. Is there a way to get it to replace my words with the actual symbol? I absolutely hate using the mouse as it slows down typing 10 fold. It seems however that if you don't absolutely love the mouse, you'll hate Maple. Are there any plans to make it more useable for those wishing to get on with it?

## Subscripts...

How do I get Maple to do a subscript without having to click the menu items? I just want to continue typing out my functions but seem to have to spend 1/2 my time clicking things with the mouse. Its very frustrating. Thanks, glenn

## Symbols...

How do I insert symbols like beta, gamma and so forth? I'm wanting to keep my work looking like the questions I'm working but don't see how to insert symbols that I need. Thanks, glenn

## Griphing/plot help...

Hello all, I'm new to maple and what I'm trying to do a just griphic the follow. I did it on my TI84 and I get the right answer but I can't get it in maple. When I try to do it in maple all I get is a liner line. y=x(11-2x)(8.5-2x) Thanks for all of the help. Thomas

## how to get the solutions?...

first read 80 numbers(x[i]) from the file"d:\data.txt",and then solve the equations contain the x[i] and a b c (unknown)．Ｉcan not get solution but the Error: Error, (in tools/add) invalid terms in sum help me,Thank you! ＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ > fd_0=FileTools[Text][Open]("D:\\data.txt", create= false, overwrite= false); > n:=FileTools[Text][CountFloats]( "D:\\data.txt" ); fd_0 = 0 n := 80 > x:=array(1..n); x := array(1 .. 80, [])

## Generalized Coordinates...

Does anyone know if Maple can deal with the concept of generalized coordinates ? I'm now starting to study Lagrangian Mechanics. Any materials or applications dealing with Maple's applicability to this subject may be useful. Thanks,