octave-maintainers
[Top][All Lists]
Advanced

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

symbolic true


From: Doug Stewart
Subject: symbolic true
Date: Wed, 10 Jun 2015 23:05:51 -0400

using this code:


clear
syms p a b 
digits(47);

 b=vpa("1.00000")
 a=vpa("3.90000")
 b<a
 a<b

  if ( b<a)
   p="100"
  else
   p="400"
  endif

After running this p should be 100 but it isn't.

The if statement always goes to the false condition!!

How can I make the if statement work with a
(sym) True

Doug
--
DAS


reply via email to

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