## Mean - Real Measurements unsorted...

Hi Guys,

got my last Problem solved :) Now i do have a new one...

restart; with(RealDomain); with(CodeGeneration); with(ExcelTools); with(plots);
dx1:=133;
dy1:=132;

n := 1;
for i to 256 do
for j to 256 do
r := evalf(sqrt((i-dx1)^2+(j-dy1)^2));
Ints := R0[i, j];
IntsR[n] := [r, Ints];
n := n+1
end do;
end do;
IntsR := [seq(IntsR[i], i = 1 .. n-1)]

The list IntsR consists of unsorted values doublets. Now it would be nice to get some sort of mean value of my Ints over r.  Didnt really find a solution for it until now... do you have any hint?

## modifying or sorting an expression of a fraction...

Hello people in mapleprimes,

I want to modify the following expression a to b. For it, I used c code.
But, as seen in d, just using c returns a. Originally, I intended phi being between 0 and 1, so
that 1-phi >0. Isn't any better way to modify a to b? and it is better to have maple sort expression remembering 1-phi to be positive, and to have maple give any priority to it in modifying a to b.

a:=(-2*theta+1)*phi/(phi-1)+theta;
b:=(2*theta-1)*phi/(-phi+1)+theta;
c:=simplify(-1*numer(op(1,aa)))/simplify((-1)*denom(op(1,aa)))+theta;
d:=simplify(c)
(-2*theta+1)*phi/(phi-1) + theta

## move 1 under sqrt...

Silly, but what command will move the one first under the sqrt here...

a:=sqrt(1+x^2)  # maple moves the x^2 in front
sqrt(x^2+1)

What maple command will move the 1 in front of the x^2 under the square root?

## How to sort a polynomial equation with many variab...

If an expression is of the form x^3 + x^2 + x + z + y^3 + y^2 + y + xy=0 ,

How to represent it in the following form,

x^3 + y^3 + x^2 + y^2 + xy + x + y + z=0 ?

## Vector sorting ...

Good day everyone, I would like to know how to work this out in a code on maple:
-I have some vectors (K(1),K(2),K(3) etc) similar to this:

K(1)=[A B C]

-I want to sort all of them by the value of C, but when I use the sort built in comand the program return a answer based on K index instead a sorting based on C.

Any ideas would be higly apreciated.

## How to sort expressions according to order of der...

I wonder if there is any way to sort expressions like

to

also:

how to sort  to

## What's with MTM[sort]?...

It took me a while to figure out what was causing this unusual sort result;

I loaded the MTM package because I want to convert numbers to integers for indexing. This sort result seem like it could be a bug.

 Sort a List of Floats  =  =  =  =  =  =

## Option to sort Mapleprimes by date of original...

MaplePrimes

Mapleprimes should have an option to sort Mapleprimes by the date of the original poster.

## How can I sort a list?...

Let B=be a list.

How can I sort B as BB=?

## Set of complexes ...

hi all

i have a set of complex numerics, so:

1- i want the numeric with least valence(potency) in imagin particle,

2- i want print the real particle of this numeric.

for example:

A:= .5464691235-.4473247264*I, -.4563184747+1.*10^(-14)*I, .5464691235+.4473247264*I

i want print: -.4563184747

plz help

## Sorting: Alternating Order...

I need to sort a list of vectors according to the alternating order defined as such:

x <_alt y if x and y differ first in the ith place and

i is even and x_i > y_i or i is odd and x_i < y_i

(so that in even positions, the order is "flipped", and in odd positions, the order is the standard order).

In this way, we arrive at

0101 <_alt 0110 <_alt 0001 <_alt 1101 <_alt 1001

Below is an attempt...

L:= [[ 0, 1, 0, 1], [0, 1, 1, 0], [0, 0, 0, 1], [1, 1, 0, 1], [1, 0, 0, 1]]

(in my actual code, my vectors will need to be of length 20).

Thank you for all of your help.

## find and solutions of determining equations ...

Hello i want to sort according to u derivatives (k) system.  And finding determining equations system and solving this system. Thank you very much.

 >
 >
 (1)
 >
 (2)
 >
 (3)
 >
 (4)
 >
 >
 (5)
 >
 (6)
 >
 (7)
 >
 (8)
 >
 >

## Sort alpha list...

Gentlemen

I know the following:{A>E,F>Z,F<P,Z>E,P<A} , all real Numbers

can I get maple to sort these in order largest to smallest.

[in this case:  A>P>F>Z>E ]

## Sorting a vector: evaluation problem...

I have a variable with some assumptions: assume(0<=W<=1).

Now, when I make a list and sort it, everything goes fine:

k := [W, (1/3)*W, (1/3)*W, (1/3)*W]:
sort(k, (a,b)->is(a>b))

I get [(1/3)W, (1/3)W, (1/3)W, W] as expected.

Now I try this:

k:= Vector[column]([W, (1/3)*W, (1/3)*W, (1/3)*W])
sort(k, (a,b)->is(a>b))

And Maple gets stuck on this computation. I have tried on both Windows and Linux, on several different computers.