octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #37168] Different results using feval with the


From: anonymous
Subject: [Octave-bug-tracker] [bug #37168] Different results using feval with the same function with and without linspace
Date: Wed, 22 Aug 2012 16:10:40 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1

URL:
  <http://savannah.gnu.org/bugs/?37168>

                 Summary: Different results using feval with the same function
with and without linspace
                 Project: GNU Octave
            Submitted by: None
            Submitted on: mer 22 ago 2012 16:10:39 UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: EDM
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Hi,
I was using octave in Arch Linux with this code:


dg1=inline('0.5*(log(x.^2+2)).^(-0.5)*(2*x/(x.^2+2))');
feval(dg1,0.5)
feval(dg1,1.5)
xx1=linspace(0.5, 1.5);
feval(dg1,xx1)


The output of the first two feval is different from the output given from the
last feval using linspace.


feval(dg1,1.5)
ans =  0.29341


but

feval(dg1,xx1)
(...)
0.27436


Is anything wrong with my code?




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37168>

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.gnu.org/




reply via email to

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