MaplePrimes Questions

I have used bubble sort to put my list in order but now i need help to rearrange the list.

For example l:=[2,2,2,3,4,5,1,3,7,8,9]
Bubble sort:= [1,2,2,2,3,3,4,5,7,8,9]

What i want to do is do, smallest&largest,next smallest & next largest
Like this - [1,9,2,8,2,7,2,5,3,4,3]
So as you can see its been rearranged so that their all next to each other.

Any help would be great.

Hi, all, I want to know whether I get a row of a matrix. For example, I have a matrix: [ 1 0 0 1] [ 0 1 0 1] M=[ 1 0 1 0] [ 0 0 0 1] and I want to the first row [ 1 0 0 1], how to do this? thanks Gepo

hello, i am generating an eigenvector of three elements. i need to assign each element a parameter...u,v,w. so for example if the vector is [1,2,3] then i want to assign u=1,v=2,w=3. can somebody pls show me.

the big picture is that i have 4 roots, and for each root i will have 4 eigenvectors, and i need to assign them to u[i],v[i],w[i], where i=1..4.

 

thank you

Hello

I read this forum http://www.mapleprimes.com/forum/plotsunits  in which it says you have to extract units beforehand to plot.

The problem is that I have a lot of functions and I can't remove units by hand, so I wanted to use the command convert(........,unit_free) but  with no result

The function in the convert command is a piecewise. I upload the file

Thanks.

supporse for a function f(x) (which we do knot know), we know

 

x0  and f(x0)

x1 and f(x1)

x2 and f(x2)

 

how can we find best approximations for the first , second, third and fourth derivatives?

hi i think this is an easy one,

for a from 1 to 3 do sol:=solve(x^2=16*a,x) end do;

ok this gives us 6 solutions, 2 for each value of a. how do i display a particular solution?, for example i just want to display the solution when a=2, and then i just want the second solution of a=3... hope this makes sense

 

Thank you.

Hi, I'd like to substitute the expression A into B, where B is of the form

B:=a*x+b*y+c*z+D(f)(p*x+q*y*r*z),

where a,b,c,p,q,r, are constants. The problem is: I only want the substitutions to be done outside of the unknown function f. So, if

A:=x=4*u,

Currently I have 500 values, I put them in an array x:= [a,b,c,d,.....] then using with(Statistics) plotted my histogram with Histogram(x) but this doesn't give me a very accurate histogram and there are only 10 or so bars. How can I make this better?

Been looking for about 15 minutes, and there simply isn't that much to look through.

Using Maple 13.0, I can't find the "Find Discontinuities" option that a bunch of walkthroughs insist are in the Plot Builder's Options menu.

Anyone know what I'm missing?

Is it possible to create a procedure in maple that works out how many 'queens'  can be placed on a board size n * n and plot some sort of a matrix which displays the positions using 1's and 0's without conflicting with each other?? What i mean by 'is it possible' is would it be a efficient algorithm (if it is possible)  or a very long algorithm containing of complex maple code?

I want to integrate y=x^2 + 4 from a number to 7 for which i get the area under the curve to be 40. How do I write up a maple code that tells me that number?

Hello everyone

I have a cost function I would like to minimize. It is a fairly simple function that only contains multiplications and additions.

Only problem is, this function has about a hundred variables, but they can only be between the interval [0,1] so I guess it makes the problem easier.

Is it possible to write a little program in maple that can be ran as much as I want it to run and that could try to find an approximation of the actual solution? (By trying random numbers between 0 and 1)

Thank you very much

Hello,

If I define two arrays in the following way:

for i from 0 to 2 do

for j from 0 to 2 do

A[i,j]:=[i+j]:

B[i,j]=[i-j]:

od: od:

 

Then if I try to add them and look at the 0,0th component of the result:

C:=evalm(A+B):

C[0,0];

 

I don't get an answer. (I've tried both the LinearAlgebra package and the linalg package.

What would I have to do to get them to add successfully ?

 

Thanks

Download 10402_Massequ_MathCadCompare_v2.pdf
View file details

Sorry but my question os more for mathematica users: The DSolve result is not correct. What can I do?

Thanks for your advice.

Walter

 

 

First 2040 2041 2042 2043 2044 2045 2046 Last Page 2042 of 2434