<?xml version="1.0" encoding="UTF-16"?>
<!-- This XML file has been created by Easy Java Simulations (Ejs). Visit http://www.um.es/fem/Ejs. -->
<!-- Please, save the file to your hard disk on your Ejs' user directory and open it with Ejs. -->
<Osejs version="4.3.7" password="">
<Osejs.Information>
<Title><![CDATA[]]></Title>
<Author><![CDATA[]]></Author>
<Keywords><![CDATA[]]></Keywords>
<Password><![CDATA[]]></Password>
<Level><![CDATA[]]></Level>
<Language><![CDATA[]]></Language>
<Abstract><![CDATA[]]></Abstract>
<ExecPassword><![CDATA[]]></ExecPassword>
<CaptureTools>false</CaptureTools>
<DataTools>false</DataTools>
<LanguageTools>false</LanguageTools>
<AppletColSupport>false</AppletColSupport>
<UseMacMenuBar>false</UseMacMenuBar>
<UseInterpreter>true</UseInterpreter>
<AdditionalLibraries>
</AdditionalLibraries>
<ImportStatements>
</ImportStatements>
<DetectedFiles><![CDATA[]]></DetectedFiles>
<AuxiliaryFiles><![CDATA[]]></AuxiliaryFiles>
</Osejs.Information>
<Osejs.Description>
<Osejs.Description.Page>
<Type>DESCRIPTION_EDITOR</Type>
<Name>Intro Page</Name>
<Active>true</Active>
<Content>
<OneHTMLPage>
  <Locale>_default_</Locale>
  <Title>Intro Page</Title>
  <External>false</External>
  <![CDATA[
<html>
  <head>
    <style type="text/css">
      <!--
        a:visited { color: purple }
        body { background-color: #C8DFD0; font-family: Georgia, Times New Roman, Times, serif; color: purple }
        address { border-top-style: dotted; border-top-color: border-color; padding-top: 0; border-top-width: thin; margin-top: 0 }
        a:link { color: blue }
        h1 { font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif }
      -->
    </style>
    
  </head>
  <body>
    <p style="margin-top: 0">
      &#935;&#961;&#951;&#963;&#953;&#956;&#959;&#960;&#959;&#953;&#959;&#973;&#956;&#949; &#964;&#951;&#957; &#956;&#941;&#952;&#959;&#948;&#959; &quot;&#945;&#960;&#972;&#961;&#961;&#953;&#968;&#951;&#962;&quot; &#964;&#959;&#965; Von Neumann &#947;&#953;&#945; &#957;&#945; 
      &#965;&#960;&#959;&#955;&#959;&#947;&#943;&#963;&#959;&#965;&#956;&#949; &#963;&#964;&#959;&#967;&#945;&#963;&#964;&#953;&#954;&#940; &#959;&#955;&#959;&#954;&#955;&#951;&#961;&#974;&#956;&#945;&#964;&#945;.
    </p>
  </body>
</html>

]]>
</OneHTMLPage>
</Content>
</Osejs.Description.Page>
</Osejs.Description>
<Osejs.Model>
<Osejs.Model.FramesPerSecond>19</Osejs.Model.FramesPerSecond>
<Osejs.Model.StepsPerDisplay>1</Osejs.Model.StepsPerDisplay>
<Osejs.Model.RealTimeVariable></Osejs.Model.RealTimeVariable>
<Osejs.Model.Autostart>true</Osejs.Model.Autostart>
<Osejs.Model.Variables>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>Πίνακας Μεταβλητών</Name>
<Active>true</Active>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[x]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[y]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ninside]]></Name>
<Value><![CDATA[1]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ntotal]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Integral]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
</Osejs.Model.Variables>
<Osejs.Model.Initialization>
</Osejs.Model.Initialization>
<Osejs.Model.Evolution>
<Osejs.Model.Evolution.Page>
<Type>EVOLUTION_EDITOR</Type>
<Name>Σελ Εξέλιξης</Name>
<Active>true</Active>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[

ntotal++;
x=Math.random();
y=Math.exp(3.0)*Math.random();
if(Math.exp(x)>y)
{
   
  ninside--;
}
else
{
  ninside++;
}
Integral=Math.exp(3.0)*ninside/ntotal;
]]></Code>
</Content>
</Osejs.Model.Evolution.Page>
</Osejs.Model.Evolution>
<Osejs.Model.Constraints>
</Osejs.Model.Constraints>
<Osejs.Model.Library>
</Osejs.Model.Library>
<Osejs.Model.Elements>
</Osejs.Model.Elements>
</Osejs.Model>
<Osejs.View>
<Osejs.View.Creation>
<Osejs.View.Creation.Element>
<Expanded>false</Expanded>
<Type>Elements.Frame</Type>
<Property name="name">frame</Property>
<Property name="_ejs_mainWindow">true</Property>
<Property name="title"><![CDATA["frame"]]></Property>
<Property name="layout"><![CDATA[border]]></Property>
<Property name="visible"><![CDATA[true]]></Property>
<Property name="location"><![CDATA["631,129"]]></Property>
<Property name="size"><![CDATA["600,600"]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>false</Expanded>
<Type>Elements.PlottingPanel</Type>
<Property name="name">plottingPanel</Property>
<Property name="parent">frame</Property>
<Property name="position">center</Property>
<Property name="autoscaleX"><![CDATA[true]]></Property>
<Property name="autoscaleY"><![CDATA[true]]></Property>
<Property name="title"><![CDATA["Calculate the Integral"]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Trace</Type>
<Property name="name">trace</Property>
<Property name="parent">plottingPanel</Property>
<Property name="x"><![CDATA[ninside]]></Property>
<Property name="y"><![CDATA[Integral]]></Property>
<Property name="norepeat"><![CDATA[true]]></Property>
<Property name="connected"><![CDATA[true]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>false</Expanded>
<Type>Elements.Panel</Type>
<Property name="name">panel</Property>
<Property name="parent">frame</Property>
<Property name="position">north</Property>
<Property name="layout"><![CDATA[GRID:0,4,0,0]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Label</Type>
<Property name="name">ninside</Property>
<Property name="parent">panel</Property>
<Property name="position">west</Property>
<Property name="text"><![CDATA["ninside ="]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">ninside2</Property>
<Property name="parent">panel</Property>
<Property name="position">east</Property>
<Property name="variable"><![CDATA[ninside]]></Property>
<Property name="action"><![CDATA[_isPlaying()]]></Property>
<Property name="visible"><![CDATA[true]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Label</Type>
<Property name="name">notal</Property>
<Property name="parent">panel</Property>
<Property name="position">north</Property>
<Property name="text"><![CDATA["notal="]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">notal_</Property>
<Property name="parent">panel</Property>
<Property name="position">south</Property>
<Property name="variable"><![CDATA[ntotal]]></Property>
<Property name="format"><![CDATA["0.00"]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>false</Expanded>
<Type>Elements.Panel</Type>
<Property name="name">panelntegral</Property>
<Property name="parent">frame</Property>
<Property name="position">south</Property>
<Property name="layout"><![CDATA[GRID:0,5,0,0]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Label</Type>
<Property name="name">Integral2</Property>
<Property name="parent">panelntegral</Property>
<Property name="position">west</Property>
<Property name="text"><![CDATA["Integral="]]></Property>
<Property name="action"><![CDATA[_isPlaying()]]></Property>
<Property name="foreground"><![CDATA[MAGENTA]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">Integral</Property>
<Property name="parent">panelntegral</Property>
<Property name="position">east</Property>
<Property name="variable"><![CDATA[Integral]]></Property>
<Property name="action"><![CDATA[_isPlaying()]]></Property>
<Property name="background"><![CDATA[YELLOW]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Button</Type>
<Property name="name">button</Property>
<Property name="parent">panelntegral</Property>
<Property name="position">center</Property>
<Property name="text"><![CDATA["pause"]]></Property>
<Property name="image"><![CDATA["/org/opensourcephysics/resources/controls/images/pause.gif"]]></Property>
<Property name="action"><![CDATA[_pause()]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Button</Type>
<Property name="name">play</Property>
<Property name="parent">panelntegral</Property>
<Property name="position">north</Property>
<Property name="text"><![CDATA["play"]]></Property>
<Property name="image"><![CDATA["/org/opensourcephysics/resources/controls/images/play.gif"]]></Property>
<Property name="action"><![CDATA[_play()]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Button</Type>
<Property name="name">step</Property>
<Property name="parent">panelntegral</Property>
<Property name="text"><![CDATA["step"]]></Property>
<Property name="action"><![CDATA[_step()]]></Property>
</Osejs.View.Creation.Element>
</Osejs.View.Creation>
</Osejs.View>
</Osejs>
