#*------------------------------------------------------------------- * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. * * This LIBRARY is free software; you can distribute it and/or modify * it under the therms of the ALSOC FREE LICENSE as available at * http://www.enq.ufrgs.br/alsoc. * * EMSO Copyright (C) 2004 - 2007 ALSOC, original code * from http://www.rps.eng.br Copyright (C) 2002-2004. * All rights reserved. * * EMSO is distributed under the therms of the ALSOC LICENSE as * available at http://www.enq.ufrgs.br/alsoc. * *-------------------------------------------------------------------- * Sample file for some math functions. *-------------------------------------------------------------------- * Author: Gerson Balbueno Bicca * $Id: Math_Function.mso 83 2006-12-14 20:29:34Z bicca $ *--------------------------------------------------------------------*# using "types"; #++++++++++++++++++++++++++++++++++++++++++++++++++++ # # EMSO sample file of Mathematical functions # # -------------------------------------------- # Function | EMSO Built-In # -------------------------------------------- # exponential | exp # Logarithmic | log # Natural Logarithmic | ln # Square root | sqrt # #++++++++++++++++++++++++++++++++++++++++++++++++++++ FlowSheet Math_Function VARIABLES exponential as Real (Brief ="exponential function"); log10 as Real (Brief ="log function"); NatLog as Real (Brief ="Natural log function"); squareRoot as Real (Brief ="square root function"); EQUATIONS exponential = exp(time/'s'); log10 = log(time/'s'); NatLog = ln(time/'s'); squareRoot = sqrt(time/'s'); OPTIONS TimeStart = 0.001; TimeStep = 0.001; TimeEnd = 1; end