2023-05-19 14:31:33 +0200 | received badge | ● Popular Question (source) |
2020-06-30 20:40:39 +0200 | received badge | ● Student (source) |
2020-06-28 02:19:31 +0200 | asked a question | holding does not work as intended Hello everyone, I am not a native speaker, so I am not too sure about how to express the problem I have, although I will certainly give my best to do so. I was experimenting with sage a bit and wanted it to generate an overview of a specific simplification of specific root expressions, namely For that matter I wanted to create a list of Tuples containing the expression exactly as written above and the corresponding boolean. I therefore defined a function like this: So in my opinion I hold the evaluations/simplification for all possible functions (add and sqrt). But for some reason sage will still try to simplify the expressions. For example the input returns So I apparently do not understand how holding works. I was under the impression, that it stops the evaluation/simplification for the given function or expression? tl;dr: To formulate a question: Can somebody correct my code to result in the intended behavior, or at least explain why Sage does not behave as expected from my point of view? |