From 6caa12358284cfcd3b558fb793c6dd139bf1c739 Mon Sep 17 00:00:00 2001 From: jofret Date: Fri, 11 Apr 2008 11:52:14 +0000 Subject: log1p(x) = log(x + 1) --- src/elementaryFunctions/log1p/zlog1ps.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/elementaryFunctions/log1p/zlog1ps.c (limited to 'src/elementaryFunctions/log1p/zlog1ps.c') diff --git a/src/elementaryFunctions/log1p/zlog1ps.c b/src/elementaryFunctions/log1p/zlog1ps.c new file mode 100644 index 00000000..8b0aeb67 --- /dev/null +++ b/src/elementaryFunctions/log1p/zlog1ps.c @@ -0,0 +1,18 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + * + */ + +#include "log.h" +#include "log1p.h" + +doubleComplex zlog1ps(doubleComplex in) { + return zlogs(DoubleComplex(zreals(in) + 1, zimags(in))); +} -- cgit