Skip to main content
5-Regular Member
Jul 17, 2026 4:06 PM UTC
Solved

Evaluating function gives "function" instead of replacing it with the actual function

Hi, as you can seeat the bottom of the picture, when evaluting the function “Iresonance”, instead of replacing the variable with the actual, it gives “function” in the result, but the function “wresonace” is already defined. How to subtitute it?

 

Thanks

 

Werner_E
Werner_EAnswer
25-Diamond I
Jul 17, 2026 5:05 PM UTC

The first argument you use when calling your function I is just the function(!) name omega.resonance - hence the result you are seeing.

I see two options:

  1. define omega.resonance not as a function but as a variable. omega.resonance := X(...) → …
    OR
  2. Use omega.resonance(C,L) when you call your function I and not just the function name

3 replies

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
Jul 17, 2026 5:05 PM UTC

The first argument you use when calling your function I is just the function(!) name omega.resonance - hence the result you are seeing.

I see two options:

  1. define omega.resonance not as a function but as a variable. omega.resonance := X(...) → …
    OR
  2. Use omega.resonance(C,L) when you call your function I and not just the function name
Translate
Jaimesg5-Regular MemberAuthor
5-Regular Member
Jul 17, 2026 5:16 PM UTC

Wow! Thank you very much I spent a lot ot time trying to get it to work.

Translate
Jaimesg5-Regular MemberAuthor
5-Regular Member
Jul 17, 2026 5:43 PM UTC

Thanks, it worked nicely.

Translate