Python Forum
Parameters aren't seen inside function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parameters aren't seen inside function
#2
You define the circuit using symbols. Numbers are symbols. Some trig functions have been defined as symbols. pi is defined as a symbol, so that would work if you stopped using math.pi.

If you want to use a variable I think you need to define it as a symbol or expression. Take a look at the documentation to see if this is what you want.

http://lcapy.elec.canterbury.ac.nz/expressions.html
Reply


Messages In This Thread
RE: Parameters aren't seen inside function - by deanhystad - Oct-26-2020, 02:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to receive two passed cmdline parameters and access them inside a Python script? pstein 2 377 Feb-17-2024, 12:29 PM
Last Post: deanhystad
  with open context inside of a recursive function billykid999 1 596 May-23-2023, 02:37 AM
Last Post: deanhystad
  How do I call sys.argv list inside a function, from the CLI? billykid999 3 814 May-02-2023, 08:40 AM
Last Post: Gribouillis
Question How to compare two parameters in a function that has *args? Milan 4 1,306 Mar-26-2023, 07:43 PM
Last Post: Milan
  function accepts infinite parameters and returns a graph with those values edencthompson 0 880 Jun-10-2022, 03:42 PM
Last Post: edencthompson
  How can I write a function with three parameters? MehmetAliKarabulut 1 2,446 Mar-04-2021, 10:47 PM
Last Post: Larz60+
  How to make global list inside function CHANKC 6 3,138 Nov-26-2020, 08:05 AM
Last Post: CHANKC
  RuntimeError: Optimal parameters not found: Number of calls to function has reached m bntayfur 0 6,169 Aug-05-2020, 04:41 PM
Last Post: bntayfur
  Function parameters and values as string infobound 1 1,789 Jul-24-2020, 04:28 AM
Last Post: scidam
  Creating function inside classes using type wolfmansbrother 3 2,367 Mar-20-2020, 01:21 AM
Last Post: wolfmansbrother

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020