Items tagged with assign assign Tagged Items Feed

I have Zipped 2 equations together to equate their equivalent Coefficients.  I now need to assign solve the list fot each value of N (1...9) How do I get Maple to do this reliably for the list as N 1..9 does not necessarily occour in sequence.

What I have done is stores algsubs names and expressions in a dual column matrix for later use. Now I need to assign them to each other. matrix is called store

column 1     column2

    a1             4.28x+2.3

    CX3          6.5x^2 +3x

    S1    ...

assigning values

March 23 2012 by Ronan 5 Maple

I have these as outputs from comparing the coefficients. How do i assign the g2xyz totheir associated numbers.


eg at present g2000 is g2000. I need it to be 1.2e7. And so on down the list.

I'm trying to have Maple automatically assign values to variables that are given in a list.

This is my function:

optp:=Maximize(F(w1,w2,w3))

optp:=[0.345,[w1=0.05,w2=0.6,w3=0.35]]

Now how do I get Maple to automatically assign w1,w2, and w3 to the values given in the output?

I tried this code:

w1:= optp[2][1];

Redefining variables

January 18 2012 by icegood 255 Maple

For next list of variables 

RVars:=[[''Rla'',''Rlb'',''Rsa'',''Rsb'',''RN''], [''GAL'',''GBL'',''GAS'',''GBS'',''GN'']];

(no double qoutes, 2 single quotes, of course)

want all of them to be redefinable with suffix option i.e. both of operators below

assign(m || (RVars[1,1]), 5);

assign( RVars[1,1], 5);

should be reentered without restart as many as wish. With 2nd form everything...

Where can i read about logic of assignment in maple? In all normal languages
c:=0;

c:=c+1; returns c to 1.

While maple gets into reccursion. Why politics of assignment was made so? Why imstead process all previous assignments maple also seems to process current one while calculating rhs (or lhs via evaln)? Where can i read about that and how actually assign value to expression without postprocessing of current operator ?

I have been working on this for a while and Maple Support has been no help.

I have a series of unsimplified questions that I am solving for. I am trying to run it from 0 to 2*Pi and plot that against the value that is calculated for r3. it solves for opposites (positive and negative) and I only want the first set. From there I am unable to have the r3 value assigned as a value and then used for the calculation of r3a (which is just the array name).

here is my code and the errors that occur

I am currently attempting to write my own program in maple for the 2nd order Runge-Kutta method for a second order differential equation. What I am finding dfficlut is assigning the initial conditions.  I want to include the condition that

(d(theta)/dt)[0]=v_0 and then proceed to evaluate using different values of v_0, however I'm not allowed to assign a value to a differential.

How do I go about including this condition?

Georgie

my problem is probably that maple assigns everywhere possible the whole expression (cause its analytical)

How do i get it to calculate a float and save it as such?

e.g.

interfaceenergy:=5.

sig:=200.*10^6

Temp:=fsolve(xi_M[Temp,sig,interfaceenergy)=0.5,T, T=100..400])

whattype(Temp) ---> function

...this is part of a nested loop (2) so after some time of calculating maple says

"Error unable to store.... and then...

Hello everybody,

I would like to assign 349 different variable not already existing (w[i], i from 1 to 349) to 349 expressions from a list. Unfortunately I do not know how to write it. When I try anything like a:=w[33]->listevnouveau[33], it does not work.

With this a, I want to solve this : solve(listedd[33]*w[33]=a,w[33]); which is only possible by assigning variable to the expression.

Regard, Charbo

Hi,

I have this problem when I use assume and assign a value to an assumed parameter.

Example:

restart:assume(beta>0):

g:=int(Sum(5*sin(n*beta*x),n=1..5),x) ;

beta:=1;

g;

Normaly beta:=1 is replaced into g. The result obtained is function of beta and beta:=1 is not replaced.

Why beta:=1 is not replaced in g ?

Thanks for suggestion

 

> Hello Guys,

 

Please help me with this problem.

 

 

 

I generate the solutions to an equation and then I place them in a list as for example

 

> t1 := [((-4*Pi^2-beta^2+4*beta^2*Q^2*Pi^2+8*I*Pi^2*beta*Q)/(4*Pi^2+beta^2-4*beta^2*Q*Pi+4*beta^2*Q^2*Pi^2))^(1/2), -((-4*Pi^2-beta^2+4*beta^2*Q^2*Pi^2+8*I*Pi^2*beta*Q...

Why is this software so unintuitive ?!

It can't even plot a vectorfunction, and when i finally found out (wich took a looong time because there is no help to get out there) i discovered my need for having to plot 2 functions in 1 graph wich is impossible !!

This is a ridiculous piece of software that i wouldn't even use, even if i got money for it !

I have fought to make this work because i had 3 small assignments to do, and thought they would be nice...

I want to calculate  an eigenvector of a jacobian matrix J with fixed parameters from the solution of some equations, but the following code does not work. When I use the command in the last 3rd line, it works well.
But I want Maple to calculate J automatically, what shall I do?

restart;
with(linalg);

F[1] := A-(B+1)*X[1]+X[1]^2*X[2];
F[2] := B*X[1]-X[1]^2*X[2];

J := jacobian([F[1], F[2]], [X[1], X[2]]);

sol := solve({F[1] = 0, F[2...

test := proc (value)
  local a, i:
  a := [jack, john, will]:
  for i in a do
    assign('i', value):
  end do:
  print(a);
end proc:

test(5);
                       [jack,john,will]

outside of the proc it works like I want it to

a:=[jack,john,will]
for i in a do
  assign('i',5):

1 2 3 4 5 6 7 Last Page 1 of 22