octave-maintainers
[Top][All Lists]
Advanced

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

Re: why is octave such a crap?


From: Juan Pablo Carbajal
Subject: Re: why is octave such a crap?
Date: Wed, 17 Aug 2016 17:12:04 +0200

On Wed, Aug 17, 2016 at 4:50 PM, Frank Zack <address@hidden> wrote:
> 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?
>
I think you misspelled the subject of your mail:  "is octave" --> "am I".
Read the error message carefully and you will find the solution.



reply via email to

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