radaar

112 Reputation

6 Badges

2 years, 140 days

MaplePrimes Activity


These are replies submitted by radaar

@acer 

Thank you. HASHTAB is eating lot of memory. Is there a better way to assigning. For eg I am using 

for i from 1 by 1 to 500 do

AA[i]:=some evaluation:
end do:

Thank you.


 

@Kitonum 

How can i use map function to evaluate function ff.thank you

@Kitonum 

The posted code is just a piece from the original code. The memory usage of the whole code is given above.

@Kitonum 
So when i run my full code I get the following memory usage. Can you please explain which command takes up more memory.

 

Matrix(63, 3, [[INTNEG, 1, 32], [INTPOS, 15, 592], [RATIONAL, 31, 744], [FLOAT, 150, 4800], [HFLOAT, 15182, 242912], [COMPLEX, 18, 352], [STRING, 4003, 153024], [NAME, 3045930, 145345968], [MEMBER, 245, 5880], [TABLEREF, 1131, 27144], [DCOLON, 182, 4368], [CATENATE, 8, 192], [POWER, 8, 192], [PROD, 83, 3272], [SERIES, 0, 0], [SUM, 351, 13656], [POLY, 0, 0], [ZPPOLY, 0, 0], [SDPOLY, 0, 0], [FUNCTION, 9830, 235920], [UNEVAL, 1245, 19920], [EQUATION, 5247, 125928], [INEQUAT, 425, 10200], [LESSEQ, 73, 1752], [LESSTHAN, 264, 6336], [AND, 1056, 25344], [NOT, 348, 5568], [OR, 374, 8976], [XOR, 0, 0], [IMPLIES, 2, 48], [EXPSEQ, 1547246, 62085480], [LIST, 2579, 41264], [LOCAL, 788, 12608], [PARAM, 478, 7648], [LEXICAL, 838, 13408], [PROC, 786, 69312], [RANGE, 354, 8496], [SET, 945, 15120], [TABLE, 28, 896], [RTABLE, 304, 36480], [MODDEF, 38, 3040], [MODULE, 74, 2368], [ASSIGN, 4587, 110088], [FOR, 361, 21792], [IF, 2656, 94584], [READ, 0, 0], [SAVE, 0, 0], [STATSEQ, 1777, 64272], [STOP, 0, 0], [ERROR, 231, 3696], [TRY, 91, 3000], [RETURN, 1473, 23568], [BREAK, 17, 136], [NEXT, 13, 104], [USE, 0, 0], [BINARY, 1093, 268769008], [HASH, 69937, 68690040], [HASHTAB, 825, 365856], [GARBAGE, 0, 0], [FOREIGN, 0, 0], [CONTROL, 0, 0], [DEBUG, 0, 0], [temporary, 0, 0]])

@Kitonum 

So for loop is much much faster. But maple help tells to use more of in built command such as add instead of loops. 

@Carl Love 

So there is no way right?

@acer 

yeah got it. Thanks a lot once again.

@acer 

yes it is copy(x) and  the mutate procedure need to return y. 

@mmcdara 

I am getting the same answer. So what is the problem in writng the peicewisae function as i did.

@Carl Love 

Thank you

@mmcdara 

I am using maple 13. Is that the reason for this difference

@Preben Alsholm 

Why only first expression peicewise function on rhs (i.e for t<>8*n) only considered avoiding t=8*n

 

@sand15 

Is this correct. please reply

problem30.mw

@sand15 

firstl i assume n as positive integer and solve the system of differential equation for n. I repeat we need solution for general n not for a specific n.

 

problem30.mw

@Kitonum 

in your case you are only considering n=1. when t=8, n=1and t=16 then n=2 and so on. My main concern is how to deal with this while plotting against t.

3 4 5 6 7 8 Page 5 of 8