Does having the solve block reference equations prior to the "Given" after the functionality? I have moved the substitutions above the "Given" however I still getting an error at the end, "This variable is undefined"
You have only one independant variable teta.
all function sould be place outside the given find loop since they are fully define by teta.
Only the last constrain should be inside the given find loop.
See the solution included