## 509 Reputation

12 years, 58 days

## Why this error ?...

Maple 14

Hi all,

I have those functions

M:=n->piecewise(And(n::integer,(n/p)::odd),((4*Br)/(mu0*Pi*(n/p)))*sin((Pi/2)*(n/p)),0);

W:=(n,r)->piecewise(And(n::integer,(n/p)::odd),(M(n)*r)/(mu1*(1-n^2)),0);

u1:=(r,theta)->sum((r^n*AI[n]+r^(-n)*BI[n]+W(n,r)*sin(n*theta0))*sin(n*theta)+(r^n*CI[n]+r^(-n)*DI[n]+W(n,r)*cos(n*theta0))*cos(n*theta),n = 1 .. nn);

diff(u1(r,theta),r);

Error, (in type/polynom) too many levels of recursion

## My problem with "set"...

Maple 14

Hi,

I have those questions:

1) set

When I write these inputs,

x:={1,3,2}; y:={b,a,d,c}; z:={a[1],a[1,1],b[0],d[0],c[0],a[0],2};

the results are x := {1, 2, 3}, y := {a, b, c, d}, z := {2, a[0], a[1], a[1,1], b[0], c[0], d[0]}

Is there a way to get what I input

2) This problem in ordering numbers and words is verry important and hard when solving a large system of equations with:

restart:with(SolveTools): eqns:=[a[0...

## piecewise and integers...

Maple 14

Hi friends,

I have this piecewise function:

restart:assume(n,integer):h := piecewise(n::odd, n^2, n^3);

I can not get explicitly the derivative:

diff(h,n);

But, with

restart:h1 := piecewise(And(n::integer, n::odd), n^2, n^3);

I can get the derivative explicitly:

diff(h1,n);

Why ?

## Large system of equations...

Maple 14

Hi all,

I have a large system of equations in matrix form A x = b (A and b are constituated with numbers)

The rank of the matrice A is 1524 by 1524

How to solve numerically the system with maple. I searched in maple help and mapleprimes questions but I have not got answer.

If maple has a limitation in solving large system of equation numerically,

Is it possible to export the matrices A and b in matlab and solve the system in matlab and...

## Matrix form of equations...

Maple 14

I have 8 equations (eq1, eq2, eq3, eq4, eq5, eq6, eq7 and eq8) with 8 varibles A1[n], A2[n], C1[n], C2[n], B2[n], A[k,i], D2[n], A[0,i] and where n=1..nn, k=1..nk, i=1..Q

I have some difficulties to get the matrix form AX=b

Thanks in advance for any help

I attached my maple code

piers.mws

 First 9 10 11 12 13 14 15 Page 11 of 15
﻿