<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tips &#8211; RiTM</title>
	<atom:link href="https://ritm.knu.ua/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>https://ritm.knu.ua</link>
	<description>Research in Theory of Magnetism</description>
	<lastBuildDate>Tue, 20 May 2014 20:08:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
<site xmlns="com-wordpress:feed-additions:1">102601221</site>	<item>
		<title>How to save intermediate result of calculations in Mathematica</title>
		<link>https://ritm.knu.ua/general/how-to-save-intermediate-result-of-calculations-in-mathematica/</link>
					<comments>https://ritm.knu.ua/general/how-to-save-intermediate-result-of-calculations-in-mathematica/#respond</comments>
		
		<dc:creator><![CDATA[engraver]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 10:15:11 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mathematica]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://ritm.knu.ua/?p=1049</guid>

					<description><![CDATA[Sometimes, one needs to make long-time pleriminary calculations in Mathematica to obtain expressions for further work. It is not convenien to make them every time when notebook opens again. An easy (but may be machine-dependent) way is to use DumpSave function. How it works. For example, we have a few…<p class="continue-reading-button"> <a class="continue-reading-link" href="https://ritm.knu.ua/general/how-to-save-intermediate-result-of-calculations-in-mathematica/">Continue reading<i class="crycon-right-dir"></i></a></p>]]></description>
										<content:encoded><![CDATA[<p>Sometimes, one needs to make long-time pleriminary calculations in Mathematica to obtain expressions for further work. It is not convenien to make them every time when notebook opens again.</p>
<p>An easy (but may be machine-dependent) way is to use DumpSave function. How it works. For example, we have a few variables for save:</p>
<pre class="brush: text; gutter: true">a = (E^(-(r^2/(2 ell^2 w[z,t]^2))) (\[Psi]^\[Prime])[t])/ell^2
b = (E^(-(r^2/(2 ell^2 w[z,t]^2))) \[Mu][t] \[Psi][t] (w^(0,1))[z,t])/(ell^2 w[z,t] (1+(ell^2 w[z,t]^2)/r^2))</pre>
<p>Now save them into the notebook directory:</p>
<pre class="brush: text; gutter: true">DumpSave[NotebookDirectory[]&lt;&gt;&quot;data.mx&quot;, {a, b}];</pre>
<p>Now one can clear the definition and load saved variables:</p>
<pre class="brush: text; gutter: true">Clear[a, b]
Get[NotebookDirectory[]&lt;&gt;&quot;data.mx&quot;]</pre>
<p>Thanks to following links (see for additional information):</p>
<ol>
<li><span style="line-height: 15.994318008422852px;"><a href="http://mathematica.stackexchange.com/questions/4615/save-and-call-matrices-with-large-output-in-mathematica">http://mathematica.stackexchange.com/questions/4615/save-and-call-matrices-with-large-output-in-mathematica</a><br />
</span></li>
<li><a href="http://mathematica.stackexchange.com/questions/36/file-backed-lists-variables-for-handling-large-data">http://mathematica.stackexchange.com/questions/36/file-backed-lists-variables-for-handling-large-data</a></li>
<li><a href="http://mathematica.stackexchange.com/questions/1959/how-do-i-save-a-variable-or-function-definition-to-a-file">http://mathematica.stackexchange.com/questions/1959/how-do-i-save-a-variable-or-function-definition-to-a-file</a></li>
</ol>
]]></content:encoded>
					
					<wfw:commentRss>https://ritm.knu.ua/general/how-to-save-intermediate-result-of-calculations-in-mathematica/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1049</post-id>	</item>
	</channel>
</rss>
