ngspice又一个电子CAD仿真软件代码.功能更全

源代码在线查看: test_cx_j.c

软件大小: 6535 K
上传用户: black001
关键词: ngspice CAD 电子 仿真软件
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include 								#include 				#include 				#include 				#include 								#include "cmath.h"				#include "cmath1.h"								FILE *cp_err;								int				main(void)				{				    complex *c = NULL;				    complex *d = NULL;				    short int t1;				    short int t2;				    int n1;				    int n2;								    cp_err = stderr;				    n1 = 1;				    t1 = VF_COMPLEX;				    c = alloc_c(n1);				    realpart(&c[0]) = .0;				    imagpart(&c[0]) = 1.0;				    d = (complex *) cx_j((void *) c, t1, n1, &n2, &t2);				    if (realpart(&d[0]) == -1 && imagpart(&d[0]) == 0)					return 0;				    else					return 1;				}							

相关资源