[Os-project-managers] NaN in xs:double (OSrL)
Horand Gassmann
Horand.Gassmann at DAL.CA
Fri Feb 4 17:14:09 EST 2011
Hi guys,
as we saw a couple of days ago, NaN is a legal value for initial
variable values. What about returning NaN from the solver? I don`t
think I can currently say
<solution ...>
<variables ...>
<values numberOfVar="2">
<var idx="0">NaN</var>
<var idx="1"/>
</values>
...
Both of the <var> lines will give an error, and I am a bit uneasy
about interpreting the second one as NaN. But it seems useful to me to
have a solver return NaN in case there are problems (such as taking
the square root of a negative number). Any ideas? Do we need to expand
the definition of xs:double?
Cheers
gus
More information about the Os-project-managers
mailing list