Skip to main content
1-Visitor
May 2, 2020
Solved

This value must be a function

  • May 2, 2020
  • 2 replies
  • 2917 views

I am doing an assignment on electrical engineering and differential equations, but i get a problem with "This value must be a function". I really cant see where the problem is and howto solve this. Mabye some of you can help to spot the error?

Best answer by Werner_E

You defined V.in:=5V as a variable, but later use V.in as a function by writing V.in(t).

Thats the reason for the error message.

You have to decide, if V.in should be constant 5V or if it should depend on time!

Of course you can have both by defining V.in(t):=5 V   🙂

2 replies

ttokoro
21-Topaz I
21-Topaz I
May 3, 2020

CR-DC.png

If Vin is not DC but Vin(t) you should do convolution.

t.t.
Werner_E25-Diamond IAnswer
25-Diamond I
May 3, 2020

You defined V.in:=5V as a variable, but later use V.in as a function by writing V.in(t).

Thats the reason for the error message.

You have to decide, if V.in should be constant 5V or if it should depend on time!

Of course you can have both by defining V.in(t):=5 V   🙂