Scott03

774 Reputation

10 Badges

19 years, 328 days

MaplePrimes Activity


These are answers submitted by Scott03

I don't think there is any way to turn off the dotted line around 2-D Math input. These dotted lines don't show up once you have left the Document block. This is an addition from Maple 10 which I find useful. In Maple 10, I had some problems realizing if I was entering executable code before I tried running it. With the dotted line around executable 2-D Math, it is that much easier (and also being able to see the block that will execute at the same time). As for the palettes, they can be dragged to be as small as 2 columns of most of the symbols. That is the smallest it will go without being closed completely. You can do this by positioning your mouse cursor at the left or right boundary of the dock and dragging to the outside of the screen. Scott
One option you can do is to edit the maple worksheet and have maple save the procedures into a library file (either a lib file or mla). There are some methods in Maple's help pages to show how to do this. Check out the LibraryTools,Save help page and the following post on MaplePrimes. There are also some blogs from some of the Maple experts on how to do this also, but I can't find it at the moment. Scott
Hi Mike, You will need to break the document into sections, preferably the size of the sections shouldn't be larger than what you can see on your screen and should contain what you would like on each slide of the slideshow. There is a tips an techniques on this option here (Slideshow Tips). Scott
Is Maple 11, version 11.01 or 11.00 and what operating system are you on? Also, have you broken you worksheet into sections? Scott
Hi ctomkins, Would you be able to post a worksheet just with the problem that you are having? I believe that when I was trying to follow what you entered, that I am missing something since I am not getting what you are getting. Also, make sure that you have defined y before the profit statement (with the subs command as part of the profit definition). Also, what version of Maple are you using? Scott
If you are looking for a way to get that greek symbol without going to the palette or type out the full name, you could type in ga then click command complete (on Windows and linux, command complete is Ctrl+Space; on Mac it is Command + Shift + Space). Here on the list in Maple 11, the gamma symbol is 2nd on the list. Although as the other members have been mentioning, gamma is defined by default and you would have to follow one of the suggestions to unprotect the symbol to get rid of the default value for gamma. Scott
Your problem is that you are trying to get Maple to evaluate the integral at the beginning before it knows what the Fexit is. So it doesn't have anything to do with the piecewise nature of Fexit. This can be solved by changing the int(...) in Ptotal to Int(...). Later on when you define odeset (which is after Fexit is defined) call value(Ptotal) as part of the set. Scott
When using the new piecewise that you gave, I got the result of piecewise(t <= 25, 0, t <= 30, 2*t-50, t <= 34, 10, t <= 35, 2*t-58, 35 < t, 12); From Maple 10 and Maple 11. I may be missing something but this does look correct. Could you point out where the problem you are having? Scott
Watch out when using the subscripts, since as Joe Riel pointed out they are table references. This may cause a problem if you have a variable like x defined without a subscript and the same letter defined with a subscript. One will over-write the other. If do something like x[1] and x[2] (to create x with a subscript of 1 and another with a 2), this will be fine since they will be just two entries in the same table. Scott
There is probably a nice and easy method to do this but one method you could do is define a function that tests that b and d are positive then use the select function to call it over the list that you have. A simple example is as follows: temp := [[a = 3, b = 23, c = 34, d = 1], [a = 3, b = -3, c = 3, d = 2], [a = 3, b = 32, c = 4, d = -5], [a = 2, b = -3, c = -3, d = -4]]: testfun := proc (x) if evalb(0 <= eval(b, x)) and evalb(0 <= eval(d, x)) then return true; else return false; end if; end proc: select(testfun, temp); Scott Edit: thanks Joe for catching my mistake with the < bug
If you look at the results that you get from the dsolve call and stored as sol3, you will notice it is a list of procedures. So you can't just type in sol3. You should follow the steps that you had done earlier like TempX:=subs(sol3,Xr(t)); This will solve the error that you get right now. Although as soon as you run TempX(400000) you will get an error that "Error, (in unknown) complex argument to max/min" Therefore, somewhere a complex value is being used. Sadly I don't have the knowledge of these DE solving routines to point out where this is coming up and how so solve it. Scott
Thank you acer for bringing this up. I have changed the user's input to plaintext so it should now be readable as what the user intended. Fred, I don't know if this will change the issue you are finding, but the second condition for the piecewise seems to say 35<=t<34 is this correct? Or are they suppose to be the other way around? Scott
What version of Maple are you using? If you are using Maple 10, then change the places where I have :- to the [ ] brackets. If you are using Maple 10, try the following code: restart; with(stats): with(Optimization): stats[random, normald](1): MyMatrix := Matrix(10, 3): for i to 10 do z := Maximize((1/3)*ln(x)+(1/3)*ln(y), {x+y <= 100+stats[random, normald](1), x >= 0, y >= 0}): MyMatrix[i, 1] := op(1, z): MyMatrix[i, 2] := rhs(op(1, op(2, z))): MyMatrix[i, 3] := rhs(op(2, op(2, z))): end do: PlotX := Statistics[FrequencyPlot](MyMatrix[1 .. 10, 2], thickness = 3, color = red): PlotY := Statistics[FrequencyPlot](MyMatrix[1 .. 10, 3], thickness = 3, color = blue): plots[display](PlotX, PlotY); Scott
Here is one way of doing this: restart; with(stats): with(Optimization): stats[random, normald](1): MyMatrix := Matrix(10, 3): for i to 10 do z := Maximize((1/3)*ln(x)+(1/3)*ln(y), {x+y <= 100+stats[random, normald](1), x >= 0, y >= 0}): MyMatrix[i, 1] := op(1, z): MyMatrix[i, 2] := rhs(op(1, op(2, z))): MyMatrix[i, 3] := rhs(op(2, op(2, z))): end do: PlotX := Statistics:-FrequencyPlot(MyMatrix[1 .. 10, 2], thickness = 3, color = red): PlotY := Statistics:-FrequencyPlot(MyMatrix[1 .. 10, 3], thickness = 3, color = blue): plots:-display(PlotX, PlotY); Of course there may be a more efficient way of doing this, but at least this should give you a start in solving this. Scott
It appears that Jean got hit by the < problem again. His code code should have read: restart: with(stats): with(Optimization):stats[random, normald](1); for i from 1 to 10 do z:= Maximize(1/3*ln(x)+1/3*ln(y), {x+y<=100+stats[random,normald](1),x>=0,y>=0}); end do; Scott
First 20 21 22 23 24 25 26 Last Page 22 of 30