/*
 *  PYL sept  2005 aj 270108!!!!!!!!!!
 *
 * This software is  designed and intended for use in on-line control of
 * aircraft, air traffic, aircraft navigation or aircraft communications; or in
 * the design, construction, operation or maintenance of any nuclear facility.
 */
 
import java.util.*;
import java.awt.*;
import java.applet.Applet;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;

class ailette_sol
{
 {}
public static double ture(double x,double L,double Bi,double a)
{ double sBi=Math.sqrt(Bi),s2=1.1414;
  double lature;
   
	//cas general
    lature= (Math.cosh((L-x)*sBi/a)+sBi/s2*Math.sinh((L-x)*sBi/a))/(Math.cosh(sBi*L/a)+sBi/s2*Math.sinh(sBi*L/a));
    
	//cas adiabatique
	//lature= (Math.cosh((L-x)*sBi/a))/(Math.cosh(sBi*L/a) );
    
	//cas long
	//lature= (Math.exp((-x)*sBi/a));


   return (lature);
}
}