Maple Questions and Posts

These are Posts and Questions associated with the product, Maple
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
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:
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
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.
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[1]=0, Ecce[2]=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 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
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?
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
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
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
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).Ican 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, [])
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,
If I want to make a sequence of remainders of a list X,and the list consists of n/13,where n=1..5,how do I do it using the command map()?
Help! I've got a system of equations that I solve and it has four sets of solutions, ie the output looks like: [[a= ,b= ,c= ,d=- ],[a= ,b= ,c= ,d= ],[a= ,b=- ,c= ,d= ],[a= ,b=- ,c= ,d=- ]] And specifically, I'm only interested in the solutions where both b and d are positive (the second solution in the list above). Is there a way to only solve for that solution or is there a way to extract out that solution? They're not always in the same order so I can't use something like: solve(...)[1] Thank you very much!
Greetings, For a college math project i am plotting a rocket trajectory to mars using maple. First i solved a system of D.E.'s to get the position of the earth (x(t),y(t),z(t)) as a function of time. Then i did the same thing for mars. however when i use these results to solve the D.E. for the a rocket trajectory i get an error. I will post my code. Any help would be very much appreciated. Download 5476_Earth+mars+rockettesta.mw
View file details
First 1866 1867 1868 1869 1870 1871 1872 Last Page 1868 of 1984