Skip to main content
5-Regular Member
July 17, 2026
Solved

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

  • July 17, 2026
  • 3 replies
  • 51 views

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

 

Best answer by Werner_E

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_E25-Diamond IAnswer
25-Diamond I
July 17, 2026

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
Jaimesg5-Regular MemberAuthor
5-Regular Member
July 17, 2026

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

Jaimesg5-Regular MemberAuthor
5-Regular Member
July 17, 2026

Thanks, it worked nicely.