1 function [bp,bn]=Ubern(x)
6 % bp = B(x)=x/(exp(x)-1)
10 ## This file is part of
12 ## SECS1D - A 1-D Drift--Diffusion Semiconductor Device Simulator
13 ## -------------------------------------------------------------------
14 ## Copyright (C) 2004-2007 Carlo de Falco
18 ## SECS1D is free software; you can redistribute it and/or modify
19 ## it under the terms of the GNU General Public License as published by
20 ## the Free Software Foundation; either version 2 of the License, or
21 ## (at your option) any later version.
23 ## SECS1D is distributed in the hope that it will be useful,
24 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
25 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ## GNU General Public License for more details.
28 ## You should have received a copy of the GNU General Public License
29 ## along with SECS1D; If not, see <http://www.gnu.org/licenses/>.
36 % Calcola la funz. di Bernoulli per x=0
46 % Calcola la funz. di Bernoulli per valori
47 % asintotici dell'argomento
63 % Calcola la funz. di Bernoulli per valori
64 % intermedi dell'argomento
74 % Calcola la funz. di Bernoulli per valori
75 % piccoli dell'argomento mediante sviluppo
76 % di Taylor troncato dell'esponenziale
83 while (abs(df) > eps),
98 % $Date: 2008-02-04 16:26:27 +0100 (man, 04 feb 2008) $