## How can I assign pi to a value on Maple?...

I assigned the greek alphabet  in Maple but it displayed an error message since it is already a known constant 3.142. Please how can I assign pi to 0.45 in Maple ?

## What is the simplest way to assign the values of ...

Hi,

I have two same dimentional matrix(1000*1000), one is full of variables and the other is full of numbers. What is the simplest way to assign the values of second matrix to first one variables?

for example:

A := Matrix([[x, y], [z, t]]);

B := Matrix([[1, 2], [3, 4]]);

How assign B's values to A's variables, in such a way that after assigning ,when call x, the 1 appears in output.

 >
 >
 (1)
 >
 (2)
 >
 >
 (3)

## Why don't i assign the result of a optimization to...

I have excuted a loop for i from.....by...while.....do l2:=NLPSolve(.......) with variables, t1,th,tl, etc. I need get the numerical result of theses variables and assign them to t1,th, etc. After execute a function with them. I have tried with op, map and assign, but the program don't understand the numerical value of variables. Why?. How can i assign theses numerical vaules?. Thanks!

## A possible bug with(Logic)...

I am not sure why p is assigned to 1 when I do a logic problem.

The letter p should stay as p and not be assigned to one. I suspect it has something to do with a statement that is always true. This is annoying because sometimes I have expressions with p in a formula later on, and I didn't realize p has been assigned to 1. And I can't use p in a logical formula either since it's already been assigned to 1.

## What is the expected correct outcome of the follow...

In Maple V, Release 4 (1996):

 _EnvX:=0; b:=0; proc() global b; print(_EnvX, b); assign('_EnvX=1, b=1'); print(_EnvX, b); end();_EnvX:=0: b:=0: proc() global b; print(_EnvX, b); _EnvX:=1; b:=1; print(_EnvX, b); end();;

gives:
0, 0
0, 1

 _EnvX:=0; b:=0; proc() global b; print(_EnvX, b); assign('_EnvX=1, b=1'); print(_EnvX, b); end proc();_EnvX:=0: b:=0: proc() global b; print(_EnvX, b); _EnvX:=1; b:=1; print(_EnvX, b); end proc();

?

## Workbook issues...

Dear Maple users

I have done some experiments with the new Workbook feature in Maple 2016. It is a very welcome addition, indeed. Earlier I have created Maple files in which data from an external Excel file was imported and being used for certain calculations. In order to make recalculations work properly, one need to let the Excel file follow the Maple file. That's where a Workbook come in handy! I tried placing those two files in a Workbook. It didn't work completely as advertised, I think. I moved the Workbook to another location on the harddrive to make sure it wouldn't interfere with the original files outside the Workbook. Then I recalculated the Maple document inside the Workbook. The good thing: The data from the Excel file was still present. The bad thing: If I changed some data in the Excel file inside the Workbook, it didn't register in the Maple file when updating it!

Maybe I should explain that I did import data from the Excel file into Maple via the menu: Tools > Assistants > Import Data... The data was retrieved as a matrix within the Maple file and assigned to a variable and used for plots ...

Why doesn't the above procedure work properly? I hope one don't need to use the Workbook URI to reference files within the workbook. It is not that userfriendly!

Regards,

Erik

## Plotting 2-D Graphs...

Dear All

I have simple problem related to ploting of 2-D graph

What I need is listed as below:

1. How I can re-scale axes by 1/2.

2. How to give custom gap between graph and its title.

3. How to place two legends in vertical format in opposite to horizontal.

4. How to assigne custom gap between legends and graph

5. How to place label 'q[b]' on the right side of vertical axes.

 >
 (1)
 >
 (2)
 >

Regards

## Assigning vector of symbols...

Hey,

I want to assign a value to a symbol stored in a vector. I know the position of the symbol in the vector. Is there an easy way to do this?

Here to illsutrate my problem:

 > restart:
 > vec:=:
 > vec(1):=1;    # expected result: a:=1
 (1)
 > a;            # expected result: 1
 (2)
 >

## Determine numelems for an unassigned variable...

Suppose I have a table of variables

f[1]:=a;

f[2]:=b;

numelems(f); gives 2.

In case I have not assign f,

unassign(f);
numelems(f); gives error message.

Is there any simple way let maple detect that if it is unassined, numelems(f), can provide zero?

Thank you very much

## there is a way to use assignments in another Maple...

But I have not found how to do it.

I'd like to tell a new worksheet to use assignments created in another document. This is to save time retyping equations.

And, is this something that others like to do ?

Thanks.

Cheers !

## how to select terms from one expression into 2 dif...

I am trying separation of variables in Maple. I get an equation that has the form

And now I want to tell Maple to assign the terms with 1/R in them to one variable, say eq21, and the term with 1/Z to second variable, say eq22 The idea is that I can later more easily work with each separate ode.

I do not know to separate those apart. I could offcourse copy and paste by hand, but I want to automate this.

I tried match() and patmatch() but I am not seeing the way. Here is the code:

restart;
T:=  (r,z)-> Z(z)*R(r);
eq1:= diff(T(r,z),r\$2)+1/r*diff(T(r,z),r)+diff(T(r,z),z\$2);
eq2:=expand(eq1/(Z(z)*R(r)));

#need now way to break the above into 2 different variables.

ps. I know I can do this:

restart;
T:=  (r,z)-> Z(z)*R(r);
eq1:= diff(T(r,z),r\$2)+1/r*diff(T(r,z),r)+diff(T(r,z),z\$2);
eq2:=expand(eq1/(Z(z)*R(r)));
eq3:=collect(eq2,1/R(r));
eq21:=op(1,eq3);
eq22:=op(2,eq3);

But this for me is not the right way to do it. I think there should be more algebraic way.

## about codes in the help of assign ...

Hello People in Mapleprimes,

I have a question about the codes in the help page of assign.

The folliowing codes were written there:

code (A)

assign(a,c):

assign(a=d,b=2):

a,b,c;

The output of these was

d,2,d

I think that assign(a,c) means assign(a=c) or a:=c, not c:=a.

If what I wrote was true, the output of the above code should be

d,2,c.

And, if I changed assign(a,c) to assign(c,a), the output was d,2,d, which is the output written on the helppage

of the assign. On the other hand, the output of code A was surely d,2,d.

Why does assign(a,c) have the same meaning as assign(c,a)?

Best wishes

taro

## Problem with assign...

Today I have a problem with assign that never arised before. I solved a system of equations with two solutions and wanted to assign, e.g. the second one. Does anybody know why "assign" here does not work, even though I often used it before in the same way. (I also tried it with the array-solution, but I received the same problem.

Output:

{rH = 0., rL = 0., xH = 0.2289428485, xL = 0.2289428485}, {

rH = 22.70954353, rL = 32.28670872, xH = 0.4250775404,

xL = 0.4393791233}
{rH = 0., rL = 0., xH = 0.2289428485, xL = 0.2289428485}, {

rH = 22.70954353, rL = 32.28670872, xH = 0.4250775404,

xL = 0.4393791233}
assign {rH = 22.70954353, rL = 32.28670872, xH = 0.4250775404,

xL = 0.4393791233}
rL, rH, xL, xH

I would be very glad, if anybody could help me.

And here is the whole algorithm:

## Solution for a given set of parameters...

Is it possible in Maple 15 to solve an equation with a parameter for a given set of parameters? How can this be passed to the solve function, should I use some kind of list?  After obtaining the solution how can I assign the solutions to variables such as x1 for the first value of the parameter, x2 for the second value of the parameters and so on. Furthermore, is this possible with the fsolve command?

Thanks

## assign small angel assumptions...

Hi,

I was wondering how I could assign small angel assumptions so that I could simplify an equation of motion to solve for theta double dot. Thank you for your help.

Equation Manipulation

-assumptions- small angel

 (1)

 (2)