Maple Questions and Posts

These are Posts and Questions associated with the product, Maple
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)]}}
I am trying to populate a matrix using a nested for..from loop. The Maple statments below only populate the first column; any suggestions? > for i to 45 do for j from 0 by 5 to 45 > do A[i, j+1] := evalf(EllipticF(sin(i*deg2rad), sin(j))); > end do; > end do; Thank you for the assistance.
how do i determine the derivitive of y=lnsinx-(1/2sin^2x)
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 need to plot about 44 points on an X-Y graph. All the X coordinates are given (imported from Excel) as a list. All the Y coordinates are given as a separate list. For example (roughly this is what the order of magnitudes are of the X and Y variables) X:=[380,4000,4067,...,5789] Y:=[10, 35, 56,...,82] So plot (380,10) (4000,35) (4067, 56)... (5789,82) I will worry about curve fitting and all that stuff later. I would first and foremost like to see Maple understand my data and plot it.
dear Maple Masters, i have a plotting problem about the equation |x|+|y|=5. the plot shows strange corners of the rectangle, which is absolutely incorrect as far as i'm concerned. am i wrong? or is this a bug?
Hi guys, I need to simplify tedious expressions involving products of fermionic creation/annihilation operators. I loaded the Physics package, and defined the fermionic operators c[i,spin] and C[i,spin] where i=1..4, spin=1..2 My first concern is that c[i,spin].c[i,spin] doesn't return 0, while AntiCommutator(c[i,spin],c[i,spin]) does... I don't get it. Although when I apply c[i,spin].c[i,spin] to some ket it does return 0... I'm a bit lost. Any idea?
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.
All I have a simple Alternating Series - that will not come up with a convergent result in Maple 11. Here is the problem ... Is ... this alternating series convergent or not ? sum((-1)^n/ln(n), n = 2 .. infinity) Application of the Alternating series test says YES ... but Maple does not give a result. Thanks,
donnie
LINK to example file with Alternating Series test showing convergent test to be positive.
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
I am solving a constrained maximization problem using the Lagrangian and getting back an empty set of solutions, i.e.: solns_LSW:= How do I go about diagnosing why Maple is having difficulty finding solutions? (Once I know that, I would of course also like to know how, if possible, to change the set-up so that Maple might actually find the solution(s)!) I can see that the Lagrangian becomes non-concave for cases where lambda2>p (p is one of the variables I am solving for: there are two, s and p -- see attached worksheet). This would clearly be the case for, say, p=0 optimal (which I have reason to believe it is, based on some numerical simulations I ran).
Dear all, In the attached file I try to solve expression Y for p. As Y includes dCS(p)/dp, the solve command produces an error message. I do understand that Y can't be solved for p since expression dCS(p)/dp is not fully defined. However, the result I am aiming for is simply: p = -(1/2)*(dCS(p)/dp) (with p simply being a funtion of dCS(p)/dp) Which command leads to this result? I haven't found it in the help section. Many thanks for your help! Florian View 5919_Question_solve
Hello everyone, I was wondering if the grid resolution for "patchedcontour" wireframe 3d plots is adjustable? The only setting I know of is 'numpoints', and I can set that to a high number to get a better looking 3d plot, but this results in a dense amount of wiring for the plot. So I was curious if there is a way of getting the 'better' look for a graph while keeping the number of wires low enough so that contours are easily visible (and usable). Any takers? Thanks in advance. :o)
I have been told my code is not 'perfect', I'm not too hot on maple and it has taken me a week to get to this stage. Any help or suggestions would be very welcome! h:=0.1: k:=0.001: r:=k/h^2: xl:=0: xr:=1: # left and right ends of interval in x nxpoints:=round((xr-xl)/h): ntsteps:=5: # total number of time steps iprint:=1: # print output every iprint time steps printf(cat(" x,t ","%7.3f"$(nxpoints+1),"\n"),seq(i*h,i=0..nxpoints)): format:=cat("%7.3f"$(nxpoints+2),"\n"): # format for printing output Boundary conditions for j to ntsteps+1 do u[0,j]:=0: u[nxpoints,j]:=0
hello all ... peculiar problem here ... please help the expression is true that 1/n(n+1) = 1/n-1/(n+1) since 1 = n + 1 - n gives 1/n = (n+1)/n - 1 Is there a way to demonstrate this identity in Maple ? ? I cant find any trick with "expand" or such that works. This impact is also seen when evaluating ... the following ... sum(1/n-1/(n+1), n = 1 .. infinity) = 1; = print(`output redirected...`); i get the proper answer of 1 but no answer with :::
First 1972 1973 1974 1975 1976 1977 1978 Last Page 1974 of 2097