## 90 Reputation

7 years, 246 days

## Change output `<=` to `>=`...

Maple

Hi all, why maple output alway change from `> =` to `<=` ? example

How to config to `>=`. Thank you very much

## How to get cylic sum and symmetric sum...

Maple

Hi all, how to write function to get cylic sum and symmetric sum

Example.

getSum(a, [a,b,c]) then return a + b + c,
getSum(a^2, [a,b,c]) then return a^2 + b^2 + c^2,
getSum(a^2b, [a,b,c]) then return a^2b + b^2c + c^2a,
getSum(a, [a,b,c,d]) then return a + b + c + d,
getSum(a^2b, [a,b,c,d]) then return a^2b + b^2c + c^2d + d^2a
getSum(ab, [a,b,c,d]) then return ab + ac + ad + bc + bd + cd.

Thank you very much.

## Find matrx L if A = L^T*L...

Maple

How to solve matrix in maple.

Example: Set A := Matrix(3, 3, [[2, -3, 1], [-3, 5, 0], [1, 0, 5]]). Find matrix L such that A = L^T*L.

I can solve by hand but how to use Maple?

## For loop reverse...

Maple

Hi all, I want to ask how to use for loop reverse in Maple.

Example, i have array . In Java then

`for(int i = arr.size(); i > 0; i--) {`

`    //do something`

`}`

What is simillar for loop in Maple?

Thank you very much.

## Why my function not work?...

Maple

I want write function get value a1, a2, ..., an to b1, b2, ..., bn.

Example get 1, 3, -9, 5 to a, b, c, d. This is my code

`myfunc := proc(oldVars,newVars)`

`    local i;`

`    if nops(oldVars) = nops(newVars) then`

`        for i from 1 to nops(newVars) do`

`            newVars[i] := oldVars[i];`

`        end;`

`    fi;`

`end proc:`

But not work! Can someone help me. Thank you very much

 1 2 3 4 Page 2 of 4
﻿