MaplePrimes Posts

MaplePrimes Posts are for sharing your experiences, techniques and opinions about Maple, MapleSim and related products, as well as general interests in math and computing.

Latest Post
  • Latest Posts Feed
  • Is there anybody, MapleSoft staff included, of course, that could give some help or advice on the issues raised in thread1 (which died unresolved) and thread2 (which I somewhat expect to share destiny with thread1)?
    The most trivial task in option pricing is to compute values through the Black-Scholes formula: type in the formula, feed Maple with data, done. The same in computational environments like C programs or Excel (assuming a good implementation of the cumulative normal function). Really? And the limiting cases? Or coming close to them? How about small volatility (say below 10% like in FX trading?) or short expiry times (say some weeks)? No problem to back-out volatility from prices to fit models? First I give an example that using the common formula even Maple quickly runs into numerical errors. That can be avoided by decomposing calls and puts into their so-called intrinsic value (the discounted pay-off) and their premium (that's wht has to be payed beyond that, the actual 'speculation').
    How do I get anything to work with the differential algebra package with(diffalg)? Maple does not recognize its own commands and then makes things worse by crashing my computer. I've had to pull the plug on my computer at least twice. For instance, whenever I try to type "differential_ring" as soon as I type the underscore, Maple puts me into a subscript mode. Also, there seem to be TWO packages of commands for everything: e.g. with(linalg) and with(LinearAlgebra) with(diffalg) and with(DifferentialAlgebra) which overlap tremendously! Also, sometimes [[a,b],[c,d]] is recognized as a matrix and sometimes it is not. Changing it to
    I am getting the following error when I attempt to start Maple 11: Cannot launch Java application Uncaught exception in main method: java.lang.NullPointerException I have followed all of the other threads of a similar topic and adjusted my java settings as recommended, such as: 1. Copied crimson.jar into the library/frameworks/maple.framework/versions/11/java/ 2. Modified my java preferences so that my runtime settings are set to j2se 1.4.2 and my java application runtime settings are set to j2se 1.4.2 then j2se 5.0. After making these changes I have rebooted, with no change in the error message. I have attempted to run the crimson.jar by double clicking on it and get the following error:
    hello to everyone! I have a problem with the maple toolbox for matlab: i can't use the command setmaple to move my equations from matlab to maple. An example: i create two symbolic variables in matlab >>syms x y; then i set: >>cos(x+y) ans = cos(x+y) and now i try to move the equation to maple: >>setmaple ('h',ans) ??? Undefined function or method 'setmaple' for input arguments of type 'sym'. i'm using maple 11.01 and matlab 7.4.0. I tried updating toolbox for matlab but it didn't work. Some suggestions? Thanks...
    I am trying to figure out what the heck im doing wrong when embedding the if into the loop:

    for a from 1 while a<13 do
    if(a=1)
    then functions[a]:=m||a;
    else functions[a]:=(m||a||rref[1,5]*x^(3))+(m||a||rref[2,5]*x^(2))+(m||a||rref[3,5]*x)+(m||a||rref(4,5)); end if
    end do;

    I get the Error, unterminated loop

    Thanks in advance!
    Since upgrading my OS to OSX 10.5, printing Maple output does not work, at least not well (See attached PDF at Download 513_Maple_Print_Problem.pdf
    View file details). Why is this happening? I have tried printing worksheets on three printers from two different manufacturers with the same results. (I am using a MacBook Pro 2.33GHz, 2GB ram, MAC OSX 10.5) Any help would be appreciated, as I cannot use Maple to generate materials for my classes at this point. Lance N.
    My previous blog entry was a real success. Even though my original idea about multi-part MIME has not gotten anywhere, I do now have a concise way to package a maplet with supplemental files in a single package that can be downloaded via the WWW and automatically extracted and executed. Most of the ideas were presented by acer. acer first suggested that I look at the interactive interface to the InstallerBuilder. The idea here was to embed the maplet in a worksheet saved in a help database (hdb). This did work, but was not suitable for actual use due to the overhead of the installer. In the attempt to reduce this overhead, acer then supplied some code that used march and LibraryTools. To test the product of this interaction, download the file at the URL http://www.math.sc.edu/~meade/TEST/SimpleTest.mla.
    I would like to see solutions to Exercise 7 at the end of Chapter 6 in the 2007 edition of the Maple 11 Introductory Programming Guide. It's on page 255. The exercise reads as follows: “Demonstrate that the BinarySearch procedure always terminates.” “Hint: Suppose the dictionary has n entries. How many words in the dictionary D does BinarySearch look at in the worst case?” My solution (I’m a Maple novice and I’m reading the book.) is: View 4937_Chapter6Exercise7.mw on MapleNet or Download 4937_Chapter6Exercise7.mw
    View file details
    Note added: As correctly pointed out by Joe Riel in his post below, my function fromTree fails doing what it is supposed to do for expressions which contain lists and/or sets. For a version of fromTree which behaves properly (I believe) also for expressions containing lists and/or sets, see my post below. Consider the following two functions:
    toTree   := x -> `if`(op(x) = x,x,[op(0,x),map(toTree,[op(x)])[]]):
    
    It's nice that the plot command tries to warn the users about incorrect inputs: [> plot(sin, x=4..6); Error, (in plot) invalid plotting of procedures, perhaps you mean plot(sin, 4 .. 6) [> plot([cos,sin], x=4..6); Error, (in plot) invalid plotting of procedures, perhaps you mean plot([cos, sin], 4 .. 6) However, there is a shortcoming that I suggest should be fixed: These lines produce a warning and an incorrect plot [> plot([cos,sin(x)], 4..6); [> plot([cos(x),sin], 4..6); [> plot([cos(x),sin(x)], 4..6); Whereas these lines produce no warning and an incorrect plot
    Here it is. If you are running windows vista on your machine and installed maple 11, you will shortly notice that you cannot save documents which is a little annoying. After a lot of reading and understanding how maple works as a sofware, I figured out that maple installs its own version of Java Runtime Envenrinement commonly known as JRE. The hick is it is not compatible with windows vista. Here is the solution I propose for you: 1. Go on Java sun`s website and download the latest JRE version. You will need to install it... https://sdlc5e.sun.com/ECom/EComActionServlet;jsessionid=A61F1EC27C11159DC1B22D3FBC2E7AB0 this is the website of the latest version I know of.
    Hello! So glad to become a part of this community, I am loving Maple. So here is my question: I know c++ fairly well (need to freshen up) and the same idea with Java, Ive seen I can incorporate languages into Maple, or so it seems. What type of things am I capable of doing? And along those lines, any suggestions to what path to take in order to learn such powerful tools? I am currently working on a bachelor/masters in engineering and would love to know Maple better then I do my own Fiance (just dont tell her). Thanks in advance!
    How do i find the coeff? It is not working! > restart: > alias(epsilon=ep); epsilon > eqn := ep*x^4 - 3*x^2 -2*x + 1; 4 2 eqn := epsilon x - 3 x - 2 x + 1 > eqn1 := simplify(subs(x=ep^(n)*y,eqn)/epsilon^(1+4*n)); 4 (-1 - 2 n) 2 (-1 - 3 n) (-1 - 4 n) eqn1 := y - 3 epsilon y - 2 epsilon y + epsilon > asym1 := sum(y[n]*ep^(n), n=0..3); 2 3
    Can evalc be persuaded to return for
    assume(x::complex):
    +1/2*evalc(x + conjugate(x));
    -I/2*evalc(x - conjugate(x));
    
    the real and imaginary parts of x, respectively, i.e., Re(x) and Im(x). Further, can evalc be persuaded to let
    assume(u::complex,v::complex):
    evalc(Re(u)+Re(v)-Re(u+v));
    evalc(Im(u)+Im(v)-Im(u+v));
    
    return zeros identically? It does return zeros identically if either u or v (or both) is real-valued. But not if u and v are both assumed complex-valued. Why not?
    First 218 219 220 221 222 223 224 Last Page 220 of 306