casperyc

962 Reputation

10 Badges

17 years, 23 days
University of Kent
Dr

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are answers submitted by casperyc

in my procedure, i have something like....

...

KeyM:=array([   [ "n[i]"   , "e[i]"  , "d[i]" ],
           seq(  [  N[k]    ,  e[k]   ,  d[k]  ], k=2..a  )
         ]);

...

 

 So I need it to be an array.

Thanks.

 

casperyc

I think I know why it's not working now...

because it's an array.

How do I get it to work then?

make the array "global"?

Thanks.

casper

Hi ,

I have actually solved it using another trick.

I just need to produce some random data in one of my project.

so I simply print the list from the "2nd" and so on, ignored the '1st' 'bad' ouput.

 

Your solution is very good. I will learn it.

 

Thanks!

 

casper

In short, in a procedure, how do I creat a list and always make sure it's a 'list (sequence)' during the procedure? so that when the 'list' evaluated in the first time of it's 1st (only) element, the subscript can be recognised. i.e.

t:=NULL;  #make sure it's a list

when 't' has only one element, 't[1]' will be the single value.

Thanks.

 

casper

 

Thanks.

casperyc

print(
>  array([      ["p[i]", "q[i]" , "e[i]", "d[i]"],
>         seq(  [p[k],q[k],e[k],d[k]], k=1..nops(M1) )
>       ]) 
> );

 

I have sorted it out.

Just wondering, can it be 'nicer' that to display p[i],q[i],e[i] and d[i] in a 'normal' math-display style?

 

Thanks.

 

casper

my point is:

if I do like

for i to 5 do

rand(10^20)():

od;

can i make sure these are always different numbers?

how to make sure i get they being different?

thanks

 

casper

can some one check my answers for this:

using a computer plot the Fourier series approximation given by truncating the series for f(x) =1 on 0 < x < Pi at a finite number of terms N

 

View 7845_Coursework Maple worksheet.mw on MapleNet or Download 7845_Coursework Maple worksheet.mw
View file details

Yups I made a mistake in giving maple the correct fouries series.

 

Thank you both for your help.

 

Casper

Hi all,

Thank you for your help.

I realised that the samples given in the notes were created by a previous verison of maple while I am using the latest one, as a result, I have to do some modification to the code.

 

Cheers,

 

CasperYC

Hi, I tried to plot the previous example I asked in http://www.mapleprimes.com/forum/howplot1 addcoords(F,[Y1,Y2],[( -2 * ln(Y1) )^(1/2) * cos(2*Pi* Y2),( -2 * ln(Y1) )^(1/2) * sin(2*Pi*Y2)]); plots:-coordplot(F,[0..1,0..1],scaling=constrained,axes=normal, labelling = true); but I didnt get the plot could give me another exmaple or explain a bit more on how to use it?
Hi, Just to make it clear that I want to plot for U[1] and U[2] on a 2D plane..when Y[1] and Y[2] are in the interval (0,1). Thanks Casper

http://www.maplesoft.com/contact/webforms/support.aspx

 

here may help you

Hi,

 

 

this kind of question you may have to ask the development of maple....here you may not be able to get an answer

 

cheers

 

========

I still discussing buying maple 12 with my parents..

see how luck you are!

DEplot(deq,y(x),x=-10..10,y=-10..10);

 

you will need to specify some initial conditions

1 2 3 4 5 Page 2 of 5