Items tagged with assignment assignment Tagged Items Feed



y = 0;

0 = 0

 

`\`if'`(0 = 0, x, 0 = Float(infinity))

 

0, 0

 

`\`if'`(1 = 0, x, 0 = -1.)

 

1, 0

 

`\`if'`(2 = 0, x, 0 = .5000000000)

 

2, 0

 

0.

(1)

``



Download lattsum1.mw

I have to solve the following set of equations. But it allways appears the Error "recursive assignment". Has somebody a solution for me? Is there a Problem with the Equations?

DGL1 := m[1]*(D(D(x[1])))(t)+d[1]*((D(x[1]))(t)-(D(x[2]))(t))+c[1]*(x[1](t)-x[2](t))+e^(-0.4e-1*t)*sin(t)+1.5 = 0;
DGL2 := m[2]*(D(D(x[2])))(t)+d[2]*(D(x[2]))(t)+d[1]*(DF[4]-(D(x[2]))(t))+c[2]*(x[2](t)+x[f])+c[1]*(F[4]-x[2](t)) = 0;

init := (D(x[1]))(0) = 0, x[1](0) = 1.5, x[2](0) = 5;

Today, after hours of hunting a persistent bug in a worksheet, I discovered something i did not know about Maples evaluation strategy. Consider the following Maple code:

restart:
a:=1:
b:=a:
b:=2:
a;

Now the variable 'a' holds the value of 1. Now consider the case where 'a' is a vector:

restart;
a:=<1,1>:

Have s:={'a', 'b'};

a:=4;

naturally s[1] resolves to 4. Moreover, eval(s[1],1)=4, so s successfully should forget about a.

But...

a:='a'; and s[1] returms... again a.

So, why dereferencing of pointers  is not the same as 'eval 1-level' resolving?

How actually can i unassign 'a' having s only?

Or (not obviously, but same!) related question:

how to obtain s1:={'a', 'b'} having s={a,b} with nonresolvable a and b .i.e. eval(smth, -1)?

In next code g is evalhfable while MainF is not. Is it possible to create appropriate local in IntermediateCalc cover (via appropriate assignments) for fres2 to get MainF evalhfable too? ex.mw

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 ?

Hello,

 

I'm doing a math assignment for numerical methods and I had to answer a question - solving Newton's method in maple to submit. I need to solve the question to an accuracy of 10^-5. I don't have access to the software right now as I only have it on the computers at our school, but I did take a maple course in my first year of university and have some experience with it. I wrote up this formula, but I'm not 100% sure if its correct. Could someone...

I currently need to cut a sphere into equal parts becuase I am carrying out an investigation for a school assignment. However, I do not know how I can cut the sphere into pieces in Maple, which I have been told it needs to be done through code. I will need to know how I can cut it so I can carry out my investigation by cutting it into different number of pieces. For example, cutting a sphere into half, so one piece would be a hemisphere.

 

Also, I will...

I am having a problem with variable assignment.

output 15 should be:

test :=[1]

[2]

[1 1]

At some point, the array test is being overwritten even though in my proceedure I use only local variables.

I have a mapleTA question that blocks students from starting a mastery assignment until I tell them how to do the problem. But some students are gaming it but finding out the problem from an earlier section. I want to game back by making the answer change depending on the wall clock, that is the section they are in. To do so, I need a clock function to tell the time. Since I can call maple inside mapleTA, a maple solution will also work.

I want one of a sequence of questions to not show it answer. The other questions need to show their answers, but this one

cannot. I could make a separate assignment for this question but that seems rather painful. I use latex => .qu so the

solutions that don't require touching the editor is a plus.

Hi

The attached document is my Mat assignment. When I open the file, it says that "There were problems during the loading process. Your worksheet may be incomplete." And it only shows a blank worksheet. The worksheet has been created in Maple 13 and modified in Maple 14. The problem occurred then I made the last part of the assignment! Is there any way to retrieve the file?

I hope you can help me...

 

Regards

 

I tried the following:

a:=1:

b:=2:

c:=-1:

L:=[a,b,c]:

M:=max(L);

 

However Maple outputs M:=2, but I want Maple to tell me the corresponding assignment 'b' of the maximum value of L, or at least 'L[2]'.

Is this possible and if so, how?

Thanks for answering.

Page 1 of 1