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
  • Maple currently cannot output graphics as pdf. It would be convenient for me (and anyone else who uses pdf(la)tex) to have this facility rather than converting the .eps output to pdf before inserting into a tex document. Thanks Mark
    It is easy to not notice that there is new mail in my inbox. How about a more prominent notice, when the inbox is non-empty?—e.g. something like the boxed notice that appears at the top when I earn new points?
    find the small x series which approximates

    (tan(x)log(1+x))/X

    by plotting the function and the series approximations investigate how accurate this approximation is over the range 0<x< Pi/2 when different numbers are included in the series

    i have no clue where to start can anyone help me please???
    On the ground of problems with tab indentation, see my former thread, I now instead use spaces as indentation (as I suppose the majority of you do too, or what?) Using spaces comes at a price, though: Each indentation of mine consists of three spaces. For deeper nested/indented structures of code these, I think, becomes quite tedious to enter. Therefore, the following question: When using Shift + Enter, that is, creating a new line, is there some way to tweak Maple to automatically position the curs
    I need to sketch a graph of a sail and indicate the location of the center of pressure. I'm semi new to maple, so if you could explain step by step, that would help me. Points (0,0),(2,1),(0,5) The lines would be y=-2x+5, y=0, & y=x/2 How do I get all three of them into one graph and only from ththe points? Also, how do I indicate the center of pressure which is (31/12,7/12) ? Thanks, Jerry
    Hi All In M11 you do the following; _EnvAllSolutions := true: _EnvExplicit := true: solve([sin(x)*cos(x)=0,x>0,x
    I can't seem to figure out how to plot the following in polar form. Can you help please. I'm semi new, so not to fast please. -9/(4*r^2+36)
    A poster on the usenet group comp.soft-sys.math.maple asked how to do the following more simply:
    A:={ { [1,2],[3,4] } , { [5,6],[7,8] } }:
    map(x->map(y->map(f,y),x),A);
    
           {{[f(1), f(2)], [f(3), f(4)]}, {[f(5), f(6)], [f(7), f(8)]}}
    
    As has been discussed here recently, this can be readily done using evalindets. For example,
    evalindets(A, list, integer, f);
           {{[f(3), f(4)], [f(1), f(2)]}, {[f(5), f(6)], [f(7), f(8)]}}
    
    John Fredsted asks whether there is a built-in method in Maple for lexically sorting a list of lists of small positive integers. There is not, however, Robert Israel provided two methods for accomplishing the task. The first uses the standard technique for extending Maple's sort procedure, that is, assigning a boolean-valued binary function and passing it to sort. The second method that Robert provided is ingenious. Here it is, in full,
    Ls:= map(convert,L,bytes):
    Ls:= sort(Ls, lexorder):
    map(convert,Ls,bytes);
    

    It converts each list into a string, sorts the strings, then converts the strings back to lists. This method is significantly faster than the previous. It does, however, have a limitation; it can only operate on lists with positive integers in the range 1..255. While that limitation was suitable for the original poster's application, that will not always be the case.

    I have been trying to replicate the results of an analysis which uses elliptic integrals of the first and second kind (see an earlier post titled "Solve This! - Elliptic Integrals" for a copy of the analysis and a Maple worksheet that plots an equation containing an ellipitc integral). Dr. Israel provided the Maple commands that generate the plot; however, the results are not in agreement with the paper - not even close! In an attempt to validate the EllipticF(z,k) command in Maple, I have generated a spreadsheet (attached) which uses an EllipticAddin to generate a table of values for a range of phi from 1 to 45 degrees and theta over the same range. As you can see from the workbook, the Addin has successfully generated a table that is in perfect agreement to five decimal places with the results given on page 94 of "Elliptic Integrals", 1st Edition, by Harris Hancock, Wiley & Sons, 1917 (available in PDF format from Google). The sheet that uses the EllipticF(z,k) command is not in good agreement with the table from Hancock's publication.
    I could not find any place to submit bug reports to Maplesoft, so I'll post this here:
    Dear Sir: In worksheet mode, I got an evaluation result which has a very long equation. The maple display it just on one line so that the result is displayed over window bound. I want to set it up to display the result on multiline. So, it is easy to look at my result without moving my mouse. Could you tell me how to set it up? Thanks in advance.
    So I get this to calculate correctly: sum(1/n, n = 2 .. infinity); And the result is infinity - which is obviously correct. but the following does not give me a result ... sum(1/ln(n), n = 2 .. infinity); what is the trick - do i need to assume something here ? thanks, dp
    Consider, just a test example, the following list of lists of positive integers ordered ascendingly
    L := [[1,2,7,12],[3,4,5,6],[1,2,5,9]];
    
    I would like this list of lists ordered so that [1,2,5,9] precedes [1,2,7,12], because 5 < 7 (the first two elements being equal), and [1,2,7,12] precedes [3,4,5,6], because 1 < 3. I think you see the general scheme. That can be achieved with the following code:
    with(ListTools):
    swapLists := proc(L1::'list'(posint),L2::'list'(posint))
       local L;
       L := MakeUnique(L1-L2);
       if L = [0] then
          false
       elif L[1] <> 0 then
    
    In connection with setting attributes on Arrays, as discussed here, I have run into a problem which boils down to the following: why does the code (which is only for test purposes)
    p1 := proc(x,y)
       table(['x' = x,'y' = y])
    end proc:
    p2 := proc()
       local x,y;
       x,y := 1,2;
       table(['x' = x,'y' = y])
    end proc:
    p1(1,2);
    p2();
    
    produce two different outputs; the former, p1, evaluates 'x' and 'y', even though they are surrounded by unevaluation quotes, while the latter, p2, does not?
    First 221 222 223 224 225 226 227 Last Page 223 of 306