EdisT
- 17
- 0
Hey, I'm unsure why the following returns an error:
Any ideas on how to fix this?
Any ideas on how to fix this?
The discussion revolves around an error encountered in Mathematica related to the definition and use of a variable named K, specifically in the context of function definitions and the error message involving "Tag Times." Participants explore the implications of the error message and seek clarification on its meaning.
Participants express differing views on the clarity of the error message and its implications, with some agreeing on the nature of the error while others seek further clarification. The discussion remains unresolved regarding the best approach to handle the error.
Participants highlight the complexity of the error message and the need for careful examination of the mathematical expressions involved. There is an acknowledgment of the limitations in understanding the error without additional context from the original script.
Ah thank you!DrClaude said:It means that you already defined K. Entering K = . will remove the previous definition of K, so you can define it again as a function.
That's because the error occurs after the substitution has been done. If you look carefully,Mark44 said:Not the most helpful error message...
you will see the presence of [q_, N_] after a bunch of math. That bunch of math is what K was equal to: K[q_, N_] was substituted by <<value of K>>[q_, N_], including some mathematical operations that cannot appear on the left side of := .EdisT said:![]()
No, it's multiplication (in the core Mathematica language).Mark44 said:I get "Tag" but "Tag Times in ... " is inscrutable. Is "Times" the name of a variable in the OP's script?