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
  • I am coloring the xy plane, by using a procedure(x,y) to assign color. The procedure returns a number and color is assigned according to that number. It works fine but I really want some of the points to be colored BLACK. What numerical value do I use for BLACK? WHITE?

    I have written a module based Maple expressions to LaTeX converter which can handle the following nested (as given by ToInert) inert types:

    _Inert_RATIONAL, _Inert_COMPLEX, _Inert_NAME, _Inert_SUM, _Inert_PROD, _Inert_POWER, _Inert_SET, _Inert_LIST, _Inert_FUNCTION, _Inert_MATRIX, _Inert_VECTOR_COLUMN, _Inert_VECTOR_ROW, _Inert_TABLEREF.

    As a somewhat cruel test example consider

    expr := Matrix(2,2,(i,j) ->
    	-(-x)^(-i/2+c)*sin(x)^(-j)*(a+I*b)^((i-j)/2)
    	+f({-i,j})/g([-i,j])
    	+m[i,j]
    );
    newLatex:-Latex(expr);
    

    which yields

    Inspired by the post "finding the Hessian (third order tensor) and higher order derivatives", I have written the following function which treats gradients, Jacobians, Hessians, and higher order derivatives in a unified way, implementing tensors as multidimensional Arrays:
    multiDiff := proc(expr::Array(algebraic),vars::list(symbol),n::posint)
       local i,result;
       if n > 1 then result := multiDiff(multiDiff(expr,vars,n - 1),vars,1)
       else
          result := Array(ArrayDims(expr),1..nops(vars),order = C_order);
    
    The recipe is quite simple to understand looking at an example (and it is understood best by having paper and pencil to follow it): f:= x -> x^2 the parabola with its inverse g:= y -> sqrt(y). Say you want the integral of g over 0 ... 2, which (here) is the area between the graph and its horizontal axis. That is the same as the area of the rectangle minus the area between the graph of g and the vertical axis, where the rectangle has corners 0, 2 and g(0)= f^(-1)(0) and g(2)= f^(-1)(2). Now recall the geometric interpretation of the compositional inverse of a function: it is reflection at the diagonal.
    I was solving a task in flow through a pipe and noticed a result from int where floats were changed into a RootOf containing integers and fractions. I was surprised by the result. Here is a very simple example: f:=z->solve(y/(1.+(-0.5*y)^0.8)=z,y); v:=x->int(f,-10..x); v(-1); Is it common for Maple to change floats into integers and fractions for symbolic analysis? It seems to violate the rules. Thanks, Lee View 4238_Odd Solve Example.mw on MapleNet or
    What is the canonical (and therefore also safe) way to pull out a specific argument of a function contained in the nested output from ToInert? I ask because it seems that using something like op(n1...,op(nk,ToInert(expr))...), where n1...nk are positive integers, is a bad idea because the arguments can change locations depending on the exact expression being translated to inert form. For instance, inserting a specific shape in the Matrix constructor changes locations of all the other arguments of _Inert_MATRIX. Is it using iteratively something along the following lines?
    I want learn maple well. do my best to it.
    Is there a size limit on the matrices and vectors? In case there is one, is it possible to extend this limitation?
    I've done a proc to produce a list of compound Poisson random variables as below, but it's not fast enough. I suspect there are better ways to do the same. Comments and solutions welcome! with(Statistics): FFFF := proc (g) local i, x, y, S; for i to g do x[i] := floor(convert(Sample(RandomVariable(Poisson(1)), 1), `+`)); if 0
    Recently Dr. Israel responded to my request for help in extending the EllipticF function past the limit of Pi/2 for the amplitude (see topic titled Elliptic Integrals). After reviewing A&S Chapter 17, I have tried to duplicate the results using the JacobiAM function in Maple. The help page for this function indicates that there is no limit on the amplitude. The attached worksheet evaluates the form suggested by A&S, Eq. 17.4.3 and the JacobiAM function. It is interesting to note the only when the argument given to the EllipticF function is equal to the remainder of Pi/2 - beta that the two expressions are equal. I would think that the JacobiAM form is a more compact representation of EllipticF for amplitudes greater than Pi/2. Are the two functions equivalent as used in the worksheet?
    Hello people. I tried to plot the graph plot(sqrt(sin(x))/sqrt(cos(x))) and I believe it was wrong. The graph was different from the one my Ti gave. So I went online and check with a third party online grapher: http://www.walterzorn.com/grapher/grapher_e.htm and do some calculation on my own. I believe Maple's was wrong. Any idea? Thanks.
    Hi there. How are you? I feel sorry since I purchased Maple. Let see if you would agree. First of all, it is inferior to the Ti-89 in some aspects. I have tried to use Maple 11.02 to solve the problems: (sqrt(2)+1)^x+(sqrt(2)-1)^x = 3; And Maple 11.02 fail to solve, then I tried to solve numerically, it missed one solution. There must be 2 solutions for the problem above and Maple missed 1, the Ti-89 beats it hand down. The second problem I tried was: int(sqrt(sin(x))/(sqrt(sin(x))+sqrt(cos(x))), x = 0 .. (1/2)*Pi); and Maple even stuck... The Ti-89 return answer correctly within about 20 secs.
    Does anyone know how to get the openmaple api to compile in the presence of the package com.webobjects .foundation?
    This week I made up an exam using Maple where I didn't want the input to be visible. I used View|Show/Hide to accomplish that. This worked alright within a short time frame. I could save the file with the input hidden, and then I could reload the file and, upon re-checking input to show, all the input would re-appear. However, when I let the file sit for a few days and then tried to re-show the input today, all the input in each execution group was condensed into one line with '?'.

    This sure seems like a Maple bug to me. Does anyone have any other ideas about how this could happen? Or how one might recover the input?
    Just a friendly reminder, Regards, Introduction to Maple 11 Tuesday, January 8, 2008 2:00 pm EST. Register here. In this one-hour demonstration and Q & A forum you will learn about Maple 11’s smart-document user interface, enhanced mathematical power, and increased connectivity to other tools; all of which will dramatically improve your mathematical and technical problem-solving capabilities. Introduction to Maple T.A. 3.0 Tuesday, January 15, 2008 2:00 pm EST. Register here. Focusing on ease of use, this release contains an enriched authoring environment, a brand-new Gradebook, and additional authentication and administration features.
    First 213 214 215 216 217 218 219 Last Page 215 of 306