<simulation>
  
<header>
    
<title lang="french">Essai de surface</title>
    
<title lang="spanish">Intento de superficie</title>
    
<author>..., Guillaume Barbaud</author>
    
<keywords lang="french">simulation,scilab,xml</keywords>
    
<keywords lang="spanish">Simulación, Scilab, XML</keywords>
  
</header>
  
<parameters><section>
      
<title lang="french">Paramètres de la sphere</title>
      
<title lang="spanish">Parámetros de la esfera</title>
      
<scalar label="thetamax" min="0.1" max="3.1425927" increment="0.1" period="100"><name lang="french">Theta</name><name lang="spanish">Theta</name><value>1</value></scalar>
      
<scalar label="phimax" min="0.1" max="6.2831853" increment="0.1" period="100"><name lang="french">Phi</name><name lang="spanish">Phi</name><value>1</value></scalar>
    
</section></parameters>
  
<compute>
    
<defdomain2d label="carre">
      
<rectangle>
        
<defdomain1d label="theta">
          
<interval steps="2+thetamax/%pi*30">
            
<initialvalue>0</initialvalue>
            
<finalvalue>thetamax</finalvalue>
          
</interval>
        
</defdomain1d>
        
<defdomain1d label="phi">
          
<interval steps="2+phimax/%pi*30">
            
<initialvalue>0</initialvalue>
            
<finalvalue>phimax</finalvalue>
          
</interval>
        
</defdomain1d>
      
</rectangle>
    
</defdomain2d>
  
</compute>
  
<graphs>
    
<parametricsurface label="sphere">
      
<refdomain2d ref="carre" />
      
<x1 label="x">
        
<value>sin(theta).*cos(phi)</value>
      
</x1>
      
<x2 label="y">
        
<value>sin(theta).*sin(phi)</value>
      
</x2>
      
<x3 label="z">
        
<value>cos(theta)</value>
      
</x3>
    
</parametricsurface>
  
</graphs>
  
<display>
    
<window>
      
<axis3d iso="yes" xmin="-1" xmax="1" ymin="-1" ymax="1" zmin="-1" zmax="1">
        
<drawsurface ref="sphere" shading="mixed" />
      
</axis3d>
    
</window>
  
</display>
</simulation>