Post Reply 
help with hpppl
05-08-2016, 01:52 AM (This post was last modified: 05-08-2016 01:57 AM by roadrunner.)
Post: #5
RE: help with hpppl
leprechaun,

I had some more time to look at your code. This seems to do what you need:

Code:
ZIN_F:=4000000;
ZIN_REAL:=400;
ZIN_IMA:=400;

EXPORT zin1()
BEGIN
 LOCAL REAL,IMA,n,w,r,c;
 LOCAL x,y,z;
 INPUT({{ZIN_F,[0]},{ZIN_REAL,[0]},{ZIN_IMA,[0]}},"IMPEDANCE",{"freq","real","imag"});

 w:=2*π*ZIN_F;
 n:=1+w^2*'r'^2*'c'^2;
// REAL:='R'/'N';
// IMA:=W*'C'*'R'^2/'N';
 x:="[r/("+n+")="+ZIN_REAL+","+w+"*c*r^2/("+n+")="+ZIN_IMA+"]";
 y:="[r,c]";
 z:=CAS.solve(x,y);

//({REAL=ZIN_REAL,IMA=ZIN_IMA},{'R','C'});
 RETURN z;
END;

try it and see if it gives you good results.

-road
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
help with hpppl - leprechaun - 05-07-2016, 12:30 PM
RE: help with hpppl - roadrunner - 05-07-2016, 04:55 PM
RE: help with hpppl - roadrunner - 05-07-2016, 05:00 PM
RE: help with hpppl - salvomic - 05-07-2016, 05:15 PM
RE: help with hpppl - roadrunner - 05-08-2016 01:52 AM
RE: help with hpppl - leprechaun - 05-08-2016, 06:41 PM
RE: help with hpppl - leprechaun - 05-08-2016, 06:46 PM
RE: help with hpppl - roadrunner - 05-09-2016, 12:14 AM
RE: help with hpppl - roadrunner - 05-09-2016, 12:55 PM
RE: help with hpppl - CH3791 - 05-28-2016, 01:17 AM
RE: help with hpppl - leprechaun - 05-09-2016, 05:14 AM
RE: help with hpppl - leprechaun - 05-09-2016, 06:48 AM
RE: help with hpppl - Han - 05-09-2016, 01:25 PM
RE: help with hpppl - leprechaun - 05-09-2016, 05:35 PM
RE: help with hpppl - Tim Wessman - 05-09-2016, 05:53 PM



User(s) browsing this thread: 1 Guest(s)