Dear all,
1. following problem: I use Reference NNI to change internal values of a domain. A further constant function: init: () ->% depends of the changed values. It seems that FriCAS does not call the constant function again, but stores the old value of init(), then out of date. Non constant functions of course correctly use the changed values. How can I bring FriCAS to call and evaluate again the constant function with the updated values?
2. Another, very strange problem was noted:
The referenced values where in a domain called
)abbrev domain FIDETR FIDETransposition
Believe me or not: the changing of the referenced values did not work!
After long searching of the reasons I found: this depended on the
name "FIDETransposition", i.e. the change to
)abbrev domain FIDETR FideTransposition
caused, that changing of referenced values work as expected! Can
send an example, if someone is interested.
-- Mit freundlichen Grüßen Johannes Grabmeier 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)-991-2979592
--
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 fricas-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/76a5fc70-c37b-4502-9c5a-974a0d250d86%40grabmeier.net.
good suggestion, but I had that before and it does not help. You
also see that init() is not called again, as it does not print
out, that it is called. This is the problem, as it is not called,
it neither can use a constant nor another function.
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/CAGBJN93WUG2%3DnGb7CbUyMc1NTY9MZbj%2BwawAcRKdYLydrG%2B9cw%40mail.gmail.com.
--
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 fricas-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/3cb26dbf-3d60-47f4-9490-7b0a2b530e69%40grabmeier.net.
aha, this seems reasonable (but, who should know that?)
But, nevertheless problem is not solved: I now added a new
exported function
init : () -> %
BUT: same behaviour,
the code
init(): % ==
if mLP 0 then print hconcat [toOF "init() called using
oneToN1 = ", oneToN1 :: OF]
per oneToN (deref n1Ref)
still seems to refer to the one inherited
from StepThrough, namely
init: constant -> %
Question: how can these 2 function be
distinguished?
And even worse:
I cannot use the category StepThrough in my case, because the code in the category uses the
init()-function with "contant". Obviously, implementing
init: constant -> %
there, one has not thought about the neccessity to switch that off in cases where the
domain has feature to change internal
variables.
That is not satisfactory, would need a
possibility to force the system at runtime to evaluate the
function again, although it is defined with "constant".
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/CAGBJN916frH6W2u1JoS%3DBep-rA0woUpLTw3GQsx7LR9eUYiYaA%40mail.gmail.com.