Scott03

774 Reputation

10 Badges

19 years, 327 days

MaplePrimes Activity


These are answers submitted by Scott03

It appears to be what is causing the problem is the x[1] before the ->. It appears that you are asking for an input of being an element of the array and outputting the same element. In this case just get rid of the [1] on both sides. If you want to input an array and have the function kick out the first element, you are looking for this function: f:=x->x[1]; Scott
The second option will work provided you have the vales for M,e, and n. Otherwise, Maple will spit back an unevaluated form and wait for the values to be input. One option is to try something like
C:=(M,e,n)->Power(M,e) mod n:
C(23481726526273849572, 10982375684973, 2984652746);
                446243212

By the way, there is a RSA worksheet application on Maple's Application Center here . Just click the "Download Maple Code" link and download the zip file containing a number of Maple worksheets containing code that Prof. Michael May had written. I have checked the RSA worksheet and it appears to run fine on Maple 11. Scott
Since you are wanting to evaluate at certain x coordinates, you are looking for more points than a normal plot. Try defining a function for what you are looking for then use pointplot with a seq() call. You can try something like this:
f:=x->10*x^3:
plots:-pointplot([seq([i,f(i)],i=[1,0,7,8])]);
Scott
Looking at the plot of this function you can see that there is a discontinuity at x=13. If you want to find the minimum from just above 13 to +infinity you could try minimize(9*x+21/(x-13), x = 13.00000001 .. infinity, location); This will kick out 144.4954542, {[{x = 14.52752523}, 144.4954542]} which is the f(x) value twice and the x value. You can also find the maximum value before the discontinuity by maximize(9*x+21/(x-13), x = -infinity .. 12.99999, location); 89.50454583, {[{x = 11.47247477}, 89.50454583]} Scott
You should be able to put both curves together on one plot by doing something like the following:
with(plots):
P1:=plot3d([1-2*t, -t, 3+t], s = -5 .. 5, t = -5 .. 5, axes = framed):

P2:=plot3d([5+3*s-4*t, 7-5*s-5*t, -2-s+6*t], s = -5 .. 5, t = -5 .. 5, axes = box):

display([P1,P2]);
This creates the two plots and stores them in variables P1 and P2. The display function will then display a group of plots of the same type (as in 2-D plot or 3-D plots, not a mixture of the two). See the display help page for more information. Scott
You can try the following two plot commands to get what you are looking for:
plot3d([1-2*t, -t, 3+t], s = -5 .. 5, t = -5 .. 5, axes = framed);

plot3d([5+3*s-4*t, 7-5*s-5*t, -2-s+6*t], s = -5 .. 5, t = -5 .. 5, axes = box);
You can get more information on this from the plot3d help page (?plot3d). Scott
Could you tell us what you are referring to the time? Are you looking at the time at the bottom of the Maple window or are you calling the time function? I tried two calls in a row and there wasn't too much of a change. The following is what I called: > t1 := time(): > Feynman_random_rho(5, 2): > time()-t1; 6.609 > t2 := time(): > Feynman_random_rho(5, 2): > time()-t2; 6.641 This is when using the !!! button that executes the lines one after the other (that takes out the human factor that my delay to click Enter is removed). Could this be the numbers that you are using? Scott
Do you have a sample example that you would be looking for? This would make it a lot easier for those answering the question and would mean that you have a better chance of getting the answer you are looking for. Scott
For the ctrl= keys, make sure you are in Document mode and in 2-D Math Input. Your top portion of the Maple interface should look like: Notice that the input section has no > sign in front, there is a dotted outline of the section that you have entered and near the top Math is selected. As for the input, there are some key sequences that will make it easier to enter symbols. For example to enter Pi, just type in pi the Ctrl+Space. Other short forms can be found by mousing over the symbol and a pop-up will come up with a shortcut. Scott
You should be able to write your document in Maple 11 fairly easy but I am not sure if it is easy to write the LaTeX into Maple 11 since I haven't used that option (and I never learned LaTeX). As for the symbols, there is a handwriting palette on the side that allows you to draw a symbol and Maple will try to find that symbol from the different palettes available. If you want the integral to show up before Maple evaluates it, try the inert integration. You can do this by entering something like: Int(f(x),x); where f(x) is your function. You can then either call the value() function with that label reference or just right click on the output and choose Evaluate. For the += keys, please make sure that you are in Document mode before using these. The worksheet mode with the red > signs on the left doesn't use the inline evaluation (unless you enter a Document block, but that could lead to some confusion to a new user, so it is best to think Worksheet mode doesn't allow it). As for the application that you choose, there is no way to navigate between the chapters (other than opening the worksheet individually) because there was no linking between the worksheets when it was created. If the author of the Application entered these links, then it would become available. An example of this the Multivariable Calculus application from Prof. Carl Madigan. That application both has a table of contents and a link at the bottom of the worksheets to the other worksheets. Scott
If you are using the standard interface of Maple 11, you have two methods of defining the piecewise function c(x). First you could go to the Expression Palette and choose the piecewise function at the bottom or you can call the piecewise function. If you were calling the piecewise function you would do something like the following: c:=x->piecewise(x >= 0, a(x), x > 5 and x <= 10, b(x)); I was assuming that you wanted c(5)=a(5). Also if you want to specify that outside of those ranges that you want the function to equal 0 you would do the following c:=x->piecewise(x >= 0, a(x), x > 5 and x <= 10, b(x),0); Scott
I am not sure what the .all file name was suppose to be, but if you open the file in any text editor, it is just commands. Just copy all the text and paste it into Maple 10 or 11. If you follow the steps found on this site, and in the manuals, you can create a library for this module. Scott
You are going to need to contact your IT administer for that server. First you have to confirm that the MapleNET Server is running ( MapleNetServer.sh ). If it is running, then the other cause of the issue you are having is that port 14444 is being blocked by the firewall. The MapleNET 10 that is setup on that server needs that port to be able to connect with MapleNET. Once this is allowed, your issue should be solved. Scott
Hello Pavel, Where did you save your maple worksheet in respect to the MapleNet folder on your server? Scott
Jean-Marc, I think you may have missed something important here. the package that you are importing is the plots package. The implicitplot is a function within the plots package. To use this function you can either call it using the long form like one of the following: plots[implicitplot](x^2+y^2 = 10, x = -10 .. 10, y = -10 .. 10); or plots:-implicitplot(x^2+y^2 = 10, x = -10 .. 10, y = -10 .. 10); Or you can import the package. If you execute with(plots): you will import every function within the plots package. By executing with(plots,implicitplot): you are telling Maple to ONLY import the implicitplot function from the plots package. So the help page doesn't need to be changed at all since it is correct, just that it is different from a lot of other help pages where they import whole packages not just one function. This is useful if you are importing a package that would redefine functions that are default in Maple or a function you had defined. See the ?with help page for more info. Scott
First 18 19 20 21 22 23 24 Last Page 20 of 30