octave-maintainers
[Top][All Lists]
Advanced

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

why is octave such a crap?


From: Frank Zack
Subject: why is octave such a crap?
Date: Wed, 17 Aug 2016 14:50:30 +0000 (UTC)

function retval=octsux(x)
  if(x<1.3)                         % -inf<x<1.3
    retval=1/(exp(-x(1))+0.27);
  else                                 % 1.3<=x<inf
    retval=4/(3*sqrt(pi))*(x(1)^2+pi^2/6)^(3/4);
  endif  
endfunction

octsux(10)

warning: function name 'octsux' does not agree with function file name '/user/ME/test.m'
error: 'x' undefined near line 2 column 6
error: called from


wtf?


reply via email to

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