similar problem: want to use SubDomain, which is used in FriCAS only for
PI and NNI, but get error message for the domain PRestrictedInteger is
called

as first argument to SubDomain instead of Integer as for PI and NNI:

   >> System error:
   The value
  |PRestrictedInteger|
is not of type
  LIST



Am 17.09.17 um 16:24 schrieb Ralf Hemmecke:
> On 09/15/2017 04:23 AM, oldk1331 wrote:
>> 2. subtractIfCan for NNI is very wasteful, the return type
>> Union("failed", NNI) takes 3 times the space than NNI.
>> (type Maybe doesn't have this problem, but that's a different topic)
> Can you elaborate on this Maybe type and why it doesn't have that overhead?
>
> Union(NNI, "failed") is certainly a bit too much in terms of space.
> FriCAS has no Maybe domain and I don't know exactly, how OpenAxiom
> implements it.
>
> In fact, I'd favour something like "Partial" in Aldor. It would be
> simple to implement and it can be done via the Reference domain of FriCAS.
>
> https://github.com/pippijn/aldor/blob/master/aldor/lib/aldor/src/base/sal_partial.as#L92
>
> Ralf
>

-- 
Mit freundlichen Grüßen

Johannes Grabmeier

Fraktionsvorsitzender 
FREIE WÄHLER, Stadtrat Deggendorf

Prof. Dr. Johannes Grabmeier
Köckstraße 1, D-94469 Deggendorf
Tel. +49-(0)-991-2979584, Tel. +49-(0)-151-681-70756
Fax: +49-(0)-322-241-92688

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to