BrianB

96 Reputation

2 Badges

15 years, 141 days

MaplePrimes Activity


These are replies submitted by BrianB

Hi 

Thank you for your answer, but it is not excatly what i am looking for. In the manual an example of a loop is given as:

>tot := 0:
>for i from 11 by 2 while i < 100 do
tot := tot + i
end do:
tot;
Here the entire loop is in  1 input line ('>'), only. What I would like to do is: 
 
>for i from 11 by 2 to do
> 'expression 1'
>  'expression 2'
... 
>  'expression 1000'

> end do:

The reason that I would like to do it in this way is that there are large amount of code, figures and export of data in the loop and therefore it is not suitable to have all the code in only in only one input line ('>').

Hi 

Thank you for your answer, but it is not excatly what i am looking for. In the manual an example of a loop is given as:

>tot := 0:
>for i from 11 by 2 while i < 100 do
tot := tot + i
end do:
tot;
Here the entire loop is in  1 input line ('>'), only. What I would like to do is: 
 
>for i from 11 by 2 to do
> 'expression 1'
>  'expression 2'
... 
>  'expression 1000'

> end do:

The reason that I would like to do it in this way is that there are large amount of code, figures and export of data in the loop and therefore it is not suitable to have all the code in only in only one input line ('>').

Hi Axel

The lines are small pieces of a much larger expression and i know that i can do alot rewritting by hand in order to avoid the problem but it would be nice if maple could do the trick for me.

Is there and "automatic" way of handling the problem?

Hi Axel

The lines are small pieces of a much larger expression and i know that i can do alot rewritting by hand in order to avoid the problem but it would be nice if maple could do the trick for me.

Is there and "automatic" way of handling the problem?

Hi

Thank you for your reply.

I know use the resultname option to name the variable and then I save it as an *.m file for easy import in matlab.

Hi

Thank you for your reply.

I know use the resultname option to name the variable and then I save it as an *.m file for easy import in matlab.

Okay. Thanks.

I'm a relatively new maple user and I have just discovered that I do not have the classic interface I only have the "new"  standard worksheet. It understands the instructions and creates a picture, but it is only 72 kb. Maybe it is a bug.

If you have the standard worksheet available could you then please test in there as well just to be shure if it is a problem with the standard worksheet?

 

Thanks in advance

Okay. Thanks.

I'm a relatively new maple user and I have just discovered that I do not have the classic interface I only have the "new"  standard worksheet. It understands the instructions and creates a picture, but it is only 72 kb. Maybe it is a bug.

If you have the standard worksheet available could you then please test in there as well just to be shure if it is a problem with the standard worksheet?

 

Thanks in advance

Hi Thomas Richard

Thank you for your answer.

I'm looking for a type of reference to another document which updates it self if the document it refers to changes. This interdocument reference that you suggested cannot do this as far as I understand. 

I'm know using save/read method where the variabels or equations that I would like to use in another document are saved into a *.m file (>save A, B, "parameterAandB.m"). In the other documents where I need these I simply write >read "parameterAandB.m". This is not perfect. but it works. I'm still looking for a better way that works sort of like and LateX master document or LateX input document where a file (file1) are referenced to and run from another document by writing \input{./file1} .

Regards Brian Bak

Hi Thomas Richard

Thank you for your answer.

I'm looking for a type of reference to another document which updates it self if the document it refers to changes. This interdocument reference that you suggested cannot do this as far as I understand. 

I'm know using save/read method where the variabels or equations that I would like to use in another document are saved into a *.m file (>save A, B, "parameterAandB.m"). In the other documents where I need these I simply write >read "parameterAandB.m". This is not perfect. but it works. I'm still looking for a better way that works sort of like and LateX master document or LateX input document where a file (file1) are referenced to and run from another document by writing \input{./file1} .

Regards Brian Bak

Page 1 of 1