Free cookie consent management tool by TermsFeed Policy Generator

Changes between Version 2 and Version 3 of Ticket #1314, comment 11


Ignore:
Timestamp:
12/04/10 16:55:17 (13 years ago)
Author:
swinkler
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1314, comment 11

    v2 v3  
    11I suggest that we define a modified version of the log function for MATLAB that behaves like the log function used in HL:
    22
    3 {{{function y = log_(x)}}}
    4 
    5 {{{  if (x<=0)}}}
    6 {{{    y = NaN;}}}
    7 {{{  else}}}
    8 {{{    y = log(x);}}}
     3{{{
     4function y = log_(x)
     5  if (x<=0)
     6    y = NaN;
     7  else
     8    y = log(x);
     9}}}