悲剧,我算出来是0.134左右
#include<stdio.h>
#define R1 330.0
#define R2 330.0
#define R3 150.0
#define R4 100.0
#define R5 8.2
#define R6 330.0
#define Vref 5.0
#define SR(Ra,Rb) ((Ra)+(Rb))
#define PR(Ra,Rb) ((Ra)*(Rb)/(SR((Ra),(Rb))))
#define VRR(Ra,Rb,V) ((V)*((Ra)/(SR((Ra),(Rb)))))
#define VR6 (VRR(R6,PR(SR(R1,R3),SR(R2,SR(R4,R5))),Vref))
#define V1 (VRR(R3,R1,Vref-VR6)+VR6)
#define V2 (VRR(SR(R4,R5),R2,Vref-VR6)+VR6)
#define show(x,y) printf("V1=%8.8llf,V2=%8.8llf,Vo=%8.8llf",(x),(y),((x)-(y)));
int main(void)
{
show(V1,V2);
}
|