help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ocs 0.1.4 released


From: Marius Schamschula
Subject: Re: ocs 0.1.4 released
Date: Tue, 7 Jul 2015 15:05:22 -0500

Carlo,

On Jul 7, 2015, at 12:09 PM, Carnë Draug <address@hidden> wrote:

Hi everyone

a new release of the ocs package [1] is out, version 0.1.4, by Carlo de Falco.
A summary of important user-visible changes is also available online [2].

ocs is a package for solving DC and transient electrical circuit equations .

Enjoy Octave responsibly,
Carnë

[1] http://octave.sourceforge.net/ocs/
[2] http://octave.sourceforge.net/ocs/NEWS.html


My compiler (clang 3.6.1) does not like the pow syntax in this version. I get several errors like:

Mshichmanhodgesmosfet.cc:141:34: error: call to 'pow' is ambiguous
      *ids  = k*((vgs-Vth)*vds - pow(vds,2)/2 ) + vds/rd;
                                 ^~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:961:1: note: candidate function [with _A1 = double, _A2 = int]
pow(_A1 __x, _A2 __y) _NOEXCEPT
^
/opt/local/include/octave-3.8.2/octave/libcxx-fix.h:59:1: note: candidate function [with _A1 = double, _A2 = int]
pow(_A1 __x, _A2 __y) _NOEXCEPT
^
/usr/include/math.h:443:15: note: candidate function
extern double pow(double, double);
              ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:949:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY float       pow(float __x, float __y) _NOEXCEPT             {return powf(__x, __y);}
                                             ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:950:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long double pow(long double __x, long double __y) _NOEXCEPT {return powl(__x, __y);}
                                             ^

I tried statically casting the variables, to no avail.

Marius
--
Marius Schamschula





reply via email to

[Prev in Thread] Current Thread [Next in Thread]