<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/heldenmathmodeler/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/heldenmathmodeler/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 09 Sep 2014 11:56:46 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/heldenmathmodeler/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Home modified by Alfred Steffens Jr</title><link>https://sourceforge.net/p/heldenmathmodeler/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alfred Steffens Jr</dc:creator><pubDate>Tue, 09 Sep 2014 11:56:46 -0000</pubDate><guid>https://sourceforge.net84fb72eb621335c79c1ac6d5ac92009c00fd86e9</guid></item><item><title>Home modified by Alfred Steffens Jr</title><link>https://sourceforge.net/p/heldenmathmodeler/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -1,18 +1,17 @@
-* * *
-
-HMD for Computer Modeling
-==========================

 * * *

-### Overview ###
+[TOC]

+* * *
+
+#### Overview

 The HMD software program is first a basic mathematics interactive *workspace* and *script interpreter*.  As such, it is a mini programming language with syntax similar to the C language or like Scilab or Matlab. The advantage of an interactive workspace is that variables can be created and used in computations.  Script files can be loaded and executed from the shell command line.

 * * *

-### Basic Syntax ###
+#### Basic Syntax

 Code statements are in the form of an equation,

@@ -53,7 +52,7 @@

 * * *

-### Redirection ###
+#### Redirection

 There are currently two kinds of redirection in an HMD script:  the &lt;b&gt;if / else&lt;/b&gt; construct and the &lt;b&gt;while&lt;/b&gt; loop.  An example of an &lt;b&gt;if&lt;/b&gt; statement would be

@@ -71,3 +70,18 @@
         x = x + 1;
     }

+* * *
+
+#### Functions
+
+Function are defined with the &lt;b&gt;function&lt;/b&gt; keyword, followed by the name, followed by a list of parameters enclosed in curly brackets, followed by an opening curly bracket, all on one line:
+
+    :::C
+    function My_Function { int count, double value } {
+        int cnt2;
+
+        // some code
+
+        return 3;
+    }
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alfred Steffens Jr</dc:creator><pubDate>Tue, 09 Sep 2014 11:55:56 -0000</pubDate><guid>https://sourceforge.netfb7ac86ec8631350e8e9d8d130bf8e3093df2993</guid></item><item><title>Home modified by Alfred Steffens Jr</title><link>https://sourceforge.net/p/heldenmathmodeler/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -50,3 +50,24 @@
     newMagnitude = 5.0 * dMagnitude;

 produces a new array which is dMagnitude multiplied by 5.
+
+* * *
+
+### Redirection ###
+
+There are currently two kinds of redirection in an HMD script:  the &lt;b&gt;if / else&lt;/b&gt; construct and the &lt;b&gt;while&lt;/b&gt; loop.  An example of an &lt;b&gt;if&lt;/b&gt; statement would be
+
+    :::C
+    if (x &amp;lt; 3) {
+        //    some code
+    }
+
+Notice that the code to be executed must be enclosed in curly brackets and that the opening bracket must be on the same line with the conditional test.  Similarly, for a &lt;b&gt;while&lt;/b&gt; loop,
+
+    :::C
+    x = 0;
+    while (x &amp;lt; 3) {
+        //    some code
+        x = x + 1;
+    }
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alfred Steffens Jr</dc:creator><pubDate>Sun, 07 Sep 2014 13:10:37 -0000</pubDate><guid>https://sourceforge.net7026d5dceeba3478e4135e999f2a1cc930b9ce64</guid></item><item><title>Home modified by Alfred Steffens Jr</title><link>https://sourceforge.net/p/heldenmathmodeler/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -39,3 +39,14 @@

 If a variable is created on-the-fly it will automatically be of type double.  In computations, the result will end up being of type double or doublecomplex, so the other data types have limited use.  For example, the int and long types are useful for array indices or counters.

+Access to arrays is performed like in C, with square brackets,
+
+    :::C
+    myvar = dMagnitude[3];
+
+Calculations involving arrays are performed on every element of the array, like in the XxxLab languages,
+
+    :::C
+    newMagnitude = 5.0 * dMagnitude;
+
+produces a new array which is dMagnitude multiplied by 5.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alfred Steffens Jr</dc:creator><pubDate>Fri, 05 Sep 2014 11:42:46 -0000</pubDate><guid>https://sourceforge.netb5526578a8489c4eb86d60b58ad35fe9f074ea4f</guid></item><item><title>Home modified by Alfred Steffens Jr</title><link>https://sourceforge.net/p/heldenmathmodeler/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -19,8 +19,23 @@
     :::C
     x = 1;

-with standard C/Matlab arithmetic operations.  For example,
+with standard C or XxxLab arithmetic operations.  For example,

     :::C
     y = 2.5 * x / (x + 1);

+Variables can be single numbers, that is, scalars, or variables can be arrays.
+
+    :::C
+    x = 2;           // a scalar
+    x = [1, 2, 3]    // an array
+    cx = &amp;lt;1 % 3&amp;gt;;    // a complex number, 1 + 3i
+
+Variables can be defined "on the fly," which is done in most scripting languages, or they may be declared with a certain type, like in C:
+
+    :::C
+    int iCount;
+    double dMagnitude[10];
+
+If a variable is created on-the-fly it will automatically be of type double.  In computations, the result will end up being of type double or doublecomplex, so the other data types have limited use.  For example, the int and long types are useful for array indices or counters.
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alfred Steffens Jr</dc:creator><pubDate>Thu, 04 Sep 2014 11:49:00 -0000</pubDate><guid>https://sourceforge.net663d0b5cecaed8655fabb55dcb4e9b8a5ed648bb</guid></item><item><title>Home modified by Alfred Steffens Jr</title><link>https://sourceforge.net/p/heldenmathmodeler/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -5,7 +5,22 @@

 * * *

-Overview
---------
+### Overview ###
+

 The HMD software program is first a basic mathematics interactive *workspace* and *script interpreter*.  As such, it is a mini programming language with syntax similar to the C language or like Scilab or Matlab. The advantage of an interactive workspace is that variables can be created and used in computations.  Script files can be loaded and executed from the shell command line.
+
+* * *
+
+### Basic Syntax ###
+
+Code statements are in the form of an equation,
+
+    :::C
+    x = 1;
+
+with standard C/Matlab arithmetic operations.  For example,
+
+    :::C
+    y = 2.5 * x / (x + 1);
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alfred Steffens Jr</dc:creator><pubDate>Wed, 03 Sep 2014 12:09:26 -0000</pubDate><guid>https://sourceforge.net8987f02eb2f423ee7105971f436e4e9f1bdeea12</guid></item><item><title>Home modified by Alfred Steffens Jr</title><link>https://sourceforge.net/p/heldenmathmodeler/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -5,14 +5,7 @@

 * * *

-Table of Contents
-------------------
-
-# Overview
-# Programming Syntax
-# Finite Elements
-
-* * *
-
 Overview
 --------
+
+The HMD software program is first a basic mathematics interactive *workspace* and *script interpreter*.  As such, it is a mini programming language with syntax similar to the C language or like Scilab or Matlab. The advantage of an interactive workspace is that variables can be created and used in computations.  Script files can be loaded and executed from the shell command line.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alfred Steffens Jr</dc:creator><pubDate>Wed, 03 Sep 2014 11:55:26 -0000</pubDate><guid>https://sourceforge.net6b2962c495cca949e5faeab9e20826b91d48fc3d</guid></item><item><title>Home modified by Alfred Steffens Jr</title><link>https://sourceforge.net/p/heldenmathmodeler/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -0,0 +1,18 @@
+* * *
+
+HMD for Computer Modeling
+==========================
+
+* * *
+
+Table of Contents
+------------------
+
+# Overview
+# Programming Syntax
+# Finite Elements
+
+* * *
+
+Overview
+--------
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alfred Steffens Jr</dc:creator><pubDate>Wed, 03 Sep 2014 11:47:37 -0000</pubDate><guid>https://sourceforge.net55081ecf2f1848edd8caa5841f371e6e1df8e640</guid></item><item><title>Home modified by Alfred Steffens Jr</title><link>https://sourceforge.net/p/heldenmathmodeler/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +0,0 @@
-Welcome to your wiki!
-
-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
-
-The wiki uses [Markdown](/p/heldenmathmodeler/wiki/markdown_syntax/) syntax.
-
-[[members limit=20]]
-[[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alfred Steffens Jr</dc:creator><pubDate>Wed, 03 Sep 2014 11:44:02 -0000</pubDate><guid>https://sourceforge.net3cc8d4efeb46201bf5dcdad084e39d8c1723300b</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/heldenmathmodeler/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;hr /&gt;
&lt;h1 id="hmd-for-computer-modeling"&gt;HMD for Computer Modeling&lt;/h1&gt;
&lt;hr /&gt;
&lt;h2 id="table-of-contents"&gt;Table of Contents&lt;/h2&gt;
&lt;h1 id="overview"&gt;Overview&lt;/h1&gt;
&lt;h1 id="programming-syntax"&gt;Programming Syntax&lt;/h1&gt;
&lt;h1 id="finite-elements"&gt;Finite Elements&lt;/h1&gt;
&lt;hr /&gt;
&lt;h2 id="overview_1"&gt;Overview&lt;/h2&gt;
&lt;p&gt;The HMD software program is first a basic mathematics interactive &lt;em&gt;workspace&lt;/em&gt; and &lt;em&gt;script interpreter&lt;/em&gt;.  As such, it is a mini programming language with syntax similar to the C language or like Scilab or Matlab.  The advantage of an interactive workspace is that variables can be created and used in computations.  Script files can be loaded and executed from the shell command line.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id="programming-syntax_1"&gt;Programming Syntax&lt;/h2&gt;
&lt;hr /&gt;
&lt;h2 id="finite-elements_1"&gt;Finite Elements&lt;/h2&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alfred Steffens Jr</dc:creator><pubDate>Mon, 01 Sep 2014 14:02:06 -0000</pubDate><guid>https://sourceforge.net185a11eff2c84caa6657d2e13820984e8ca9ecfc</guid></item></channel></rss>