Post Reply 
help with hpppl
05-28-2016, 01:17 AM
Post: #16
RE: help with hpppl
(05-09-2016 12:55 PM)roadrunner Wrote:  
(05-09-2016 05:09 AM)cyrille de brébisson Wrote:  Attached is a file that describes the current 'system' in detail.

Cyrille
Thanks Cyrille. That document explains everything!

Leprechaun,

Here is a modified program that works with version 10077:

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

EXPORT zin1()
BEGIN
 LOCAL REAL,IMA,n,w;
 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";
 x:="[r/("+n+")="+ZIN_REAL+","+w+"*c*r^2/("+n+")="+ZIN_IMA+"]";
 y:="[r,c]";
 z:=CAS.solve(EVAL(x),EVAL(y));

 RETURN z;
END;

The variables r and c being declared as local is what was messing thing up.

-road

Thanks Roadrunner, your code really helped.
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)