<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, user defined Function</title>
    <link>http://www.mapleprimes.com/questions/138971-User-Defined-Function</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 20:17:35 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 20:17:35 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, user defined Function</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, user defined Function</title>
      <link>http://www.mapleprimes.com/questions/138971-User-Defined-Function</link>
    </image>
    <item>
      <title>partial answer</title>
      <link>http://www.mapleprimes.com/questions/138971-User-Defined-Function?ref=Feed:MaplePrimes:user defined Function:Comments#answer138977</link>
      <itunes:summary>&lt;p&gt;One way is to create a simple text file that assigns the procedure and then use the &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=read' target='_new'&gt;?read&lt;/a&gt; statement to read that file from another file or a Maple worksheet.&amp;nbsp; For example, you might create a file names myfunc.mpl:&lt;/p&gt;
&lt;pre&gt;---- start of myfunc.mpl --- &lt;br&gt;SomeFunc := proc(x)&lt;br&gt;&amp;nbsp;&amp;nbsp; return x^2;&lt;br&gt;end proc:&lt;br&gt;---- end of myfunc.mpl ---&lt;/pre&gt;
&lt;p&gt;A better approach is to save the procedure [or module] in a Maple archive (file with extension *.mla).&amp;nbsp; That can be done with the &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=LibraryTools:-Save' target='_new'&gt;?LibraryTools:-Save&lt;/a&gt; command. For example, you could include the following line at the bottom of the above file&lt;/p&gt;
&lt;pre&gt;LibraryTools:-Save('SomeFunc', "MyArchive.mla"):&lt;/pre&gt;
&lt;p&gt;If you read the entire file into Maple, it will create an archive named "MyArchive.mla" (in the &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=currentdir)' target='_new'&gt;?currentdir)&lt;/a&gt;. If that archive is saved in a location read by Maple (in the &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=libname' target='_new'&gt;?libname&lt;/a&gt; path), then the SomeFunc procedure will be available to any Maple session.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;One way is to create a simple text file that assigns the procedure and then use the &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=read' target='_new'&gt;?read&lt;/a&gt; statement to read that file from another file or a Maple worksheet.&amp;nbsp; For example, you might create a file names myfunc.mpl:&lt;/p&gt;
&lt;pre&gt;---- start of myfunc.mpl --- &lt;br&gt;SomeFunc := proc(x)&lt;br&gt;&amp;nbsp;&amp;nbsp; return x^2;&lt;br&gt;end proc:&lt;br&gt;---- end of myfunc.mpl ---&lt;/pre&gt;
&lt;p&gt;A better approach is to save the procedure [or module] in a Maple archive (file with extension *.mla).&amp;nbsp; That can be done with the &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=LibraryTools:-Save' target='_new'&gt;?LibraryTools:-Save&lt;/a&gt; command. For example, you could include the following line at the bottom of the above file&lt;/p&gt;
&lt;pre&gt;LibraryTools:-Save('SomeFunc', "MyArchive.mla"):&lt;/pre&gt;
&lt;p&gt;If you read the entire file into Maple, it will create an archive named "MyArchive.mla" (in the &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=currentdir)' target='_new'&gt;?currentdir)&lt;/a&gt;. If that archive is saved in a location read by Maple (in the &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=libname' target='_new'&gt;?libname&lt;/a&gt; path), then the SomeFunc procedure will be available to any Maple session.&lt;/p&gt;</description>
      <guid>138977</guid>
      <pubDate>Tue, 30 Oct 2012 08:08:58 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
    <item>
      <title>Easy read-save</title>
      <link>http://www.mapleprimes.com/questions/138971-User-Defined-Function?ref=Feed:MaplePrimes:user defined Function:Comments#answer138984</link>
      <itunes:summary>&lt;p&gt;In the name of Allah&lt;/p&gt;
&lt;p&gt;I easily use this method&lt;/p&gt;
&lt;p&gt;For example you are in a worksheet and have written 3 functions fog(f,g), rez(x), intvec(v) and 2 global variables a,b assigned to some values.&lt;/p&gt;
&lt;p&gt;After your definitions finish, you can easily use this command&lt;/p&gt;
&lt;p&gt;save fog,rez,intvec,a,b,"lib1.m"&lt;/p&gt;
&lt;p&gt;All the works are finished. You want to load this library in another worksheet; simply use:&lt;/p&gt;
&lt;p&gt;raed "lib1.m"&lt;/p&gt;
&lt;p&gt;And enjoy your functions and global variables.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;In the name of Allah&lt;/p&gt;
&lt;p&gt;I easily use this method&lt;/p&gt;
&lt;p&gt;For example you are in a worksheet and have written 3 functions fog(f,g), rez(x), intvec(v) and 2 global variables a,b assigned to some values.&lt;/p&gt;
&lt;p&gt;After your definitions finish, you can easily use this command&lt;/p&gt;
&lt;p&gt;save fog,rez,intvec,a,b,"lib1.m"&lt;/p&gt;
&lt;p&gt;All the works are finished. You want to load this library in another worksheet; simply use:&lt;/p&gt;
&lt;p&gt;raed "lib1.m"&lt;/p&gt;
&lt;p&gt;And enjoy your functions and global variables.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>138984</guid>
      <pubDate>Tue, 30 Oct 2012 14:50:01 Z</pubDate>
      <itunes:author>hossayni</itunes:author>
      <author>hossayni</author>
    </item>
    <item>
      <title>Nonideological and nonpolitical</title>
      <link>http://www.mapleprimes.com/questions/138971-User-Defined-Function?ref=Feed:MaplePrimes:user defined Function:Comments#comment139033</link>
      <itunes:summary>&lt;p&gt;I think MaplePrimes must be nonideological and nonpolitical.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I think MaplePrimes must be nonideological and nonpolitical.&lt;/p&gt;</description>
      <guid>139033</guid>
      <pubDate>Wed, 31 Oct 2012 22:58:15 Z</pubDate>
      <itunes:author>Markiyan Hirnyk</itunes:author>
      <author>Markiyan Hirnyk</author>
    </item>
    <item>
      <title>Allah is translation of God in arabic</title>
      <link>http://www.mapleprimes.com/questions/138971-User-Defined-Function?ref=Feed:MaplePrimes:user defined Function:Comments#comment139093</link>
      <itunes:summary>&lt;p&gt;Dear &lt;a href="http://www.mapleprimes.com/questions/138971-User-Defined-Function#comment139033"&gt;@Markiyan Hirnyk&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;Allah is translation of God in arabic&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sincerely yours&lt;/p&gt;
&lt;p&gt;Hossayni&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Dear &lt;a href="http://www.mapleprimes.com/questions/138971-User-Defined-Function#comment139033"&gt;@Markiyan Hirnyk&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;Allah is translation of God in arabic&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sincerely yours&lt;/p&gt;
&lt;p&gt;Hossayni&lt;/p&gt;</description>
      <guid>139093</guid>
      <pubDate>Fri, 02 Nov 2012 16:52:20 Z</pubDate>
      <itunes:author>hossayni</itunes:author>
      <author>hossayni</author>
    </item>
  </channel>
</rss>