Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Memory Creep' topicStudent Support Forum > General > "Memory Creep"

Next Comment >Help | Reply To Topic
Author Comment/Response
David Baugh
10/14/07 01:45am


Q1: How do I write results to a file and later read them back? Say I calculate 1000 one hundred digit integers. When I write them to a file line break characters and quotes are introduced. If I do not store them as Strings then when I read them back I lose significant figures.

Q2: If I read a million 100 digit numbers from a file and say calculate a running maximum, even though I reuse my variables the memory used creeps up with each file read until the kernal crashes due to out of memory.

Simple code examples so I get the right syntax would be most helpful.

This attachment is a practical example of the memory creep problem I am experiencing. What do I need to change to keep this from happening?



Attachment: moduletest1.nb, URL: ,

Subject (listing for 'Memory Creep')
Author Date Posted
Memory Creep David Baugh 10/14/07 01:45am
Re: Memory Creep yehuda ben-s... 10/16/07 02:49am
Re: Re: Memory Creep David Baugh 10/18/07 09:14am
Re: Memory Creep Peter Pein 10/16/07 09:38am
Next Comment >Help | Reply To Topic