虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

A母<b>usb2</b>.0

  • he basic idea of the method of bisection is to start with an initial interval, [a0,b0], that is chos

    he basic idea of the method of bisection is to start with an initial interval, [a0,b0], that is chosen so that f(a0)f(b0) < 0. (This guarantees that there is at least one root of the function f(x) within the initial interval.) We then iteratively bisect the interval, generating a sequence of intervals [ak,bk] that is guaranteed to converge to a solution to f(x) = 0.

    标签: bisection interval initial method

    上传时间: 2017-04-29

    上传用户:zsjinju

  • client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> i

    client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> include <netinet/in.h> include <arpa/inet.h> include <unistd.h> int main() { int sockfd int len struct sockaddr_in address int result char ch = A sockfd = socket(AF_INET, SOCK_STREAM, 0) address.sin_family = AF_INET address.sin_addr.s_addr = inet_addr("127.0.0.1") address.sin_port = 9734 len = sizeof(address) result = connect(sockfd, (struct sockaddr *)&address, len) if(result == -1) { perror("oops: client") exit(1) } write(sockfd, &ch, 1) read(sockfd, &ch, 1) printf("char from server = c\n", ch) close(sockfd) exit(0) }

    标签: include socket sys gt

    上传时间: 2017-07-29

    上传用户:wab1981

  • c语言算法排序

    1.Describe a Θ(n lg n)-time algorithm that, given a set S of n integers and another integer x, determines whether or not there exist two elements in S whose sum is exactly x. (Implement exercise 2.3-7.) #include<stdio.h> #include<stdlib.h> void merge(int arr[],int low,int mid,int high){      int i,k;      int *tmp=(int*)malloc((high-low+1)*sizeof(int));      int left_low=low;      int left_high=mid;      int right_low=mid+1;      int right_high=high;      for(k=0;left_low<=left_high&&right_low<=right_high;k++)      {      if(arr[left_low]<=arr[right_low]){                                        tmp[k]=arr[left_low++];                                        }      else{           tmp[k]=arr[right_low++];           } }             if(left_low<=left_high){                              for(i=left_low;i<=left_high;i++){                                                               tmp[k++]=arr[i];                                                               }                              }       if(right_low<=right_high){                              for(i=right_low;i<=right_high;i++)                                                                tmp[k++]=arr[i];                                                        }                              for(i=0;i<high-low+1;i++)                                                       arr[low+i]=tmp[i];       } void merge_sort(int a[],int p,int r){      int q;      if(p<r){              q=(p+r)/2;              merge_sort(a,p,q);              merge_sort(a,q+1,r);              merge(a,p,q,r);              }      } int main(){     int a[8]={3,5,8,6,4,1,1};     int i,j;     int x=10;     merge_sort(a,0,6);     printf("after Merging-Sort:\n");     for(i=0;i<7;i++){                      printf("%d",a[i]);                      }     printf("\n");     i=0;j=6;     do{                                    if(a[i]+a[j]==x){                                  printf("exist");                                  break;                                  }                  if(a[i]+a[j]>x)                                 j--;                  if(a[i]+a[j]<x)                                 i++;                       }while(i<=j);     if(i>j)              printf("not exist");     system("pause");     return 0;     }

    标签: c语言 算法 排序

    上传时间: 2017-04-01

    上传用户:糖儿水嘻嘻

  • 锂硫电池隔膜

    Lithium–sulfur batteries are a promising energy-storage technology due to their relatively low cost and high theoretical energy density. However, one of their major technical problems is the shuttling of soluble polysulfides between electrodes, resulting in rapid capacity fading. Here, we present a metal–organic framework (MOF)-based battery separator to mitigate the shuttling problem. We show that the MOF-based separator acts as an ionic sieve in lithium–sulfur batteries, which selectively sieves Li+ ions while e ciently suppressing undesired polysulfides migrating to the anode side. When a sulfur-containing mesoporous carbon material (approximately 70 wt% sulfur content) is used as a cathode composite without elaborate synthesis or surface modification, a lithium–sulfur battery with a MOF-based separator exhibits a low capacity decay rate (0.019% per cycle over 1,500 cycles). Moreover, there is almost no capacity fading after the initial 100 cycles. Our approach demonstrates the potential for MOF-based materials as separators for energy-storage applications.

    标签: 锂硫电池 隔膜

    上传时间: 2017-11-23

    上传用户:653357637

  • 重力异常正演MATLAB程序

    %球体 close all; G=6.67e-11; R=2;%球体半径 p=4.0;%密度 D=10.0;%深度 M=(4/3)*pi*R^3*p;%质量 x=-20:1:20; g=G*M*D./((x.^2+D^2).^(3/2)); Vxz=-3*G*M*D.*x./((x.^2+D^2).^(5/2)); Vzz=G*M.*(2*D^2-x.^2)./((x.^2+D^2).^(5/2)); Vzzz=3*G*M.*(2*D^2-3.*x.^2)./((x.^2+D^2).^(7/2)); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距离(m)'); ylabel('重力异常值'); title('球体重力异常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vzzz'); grid on %% %水平圆柱体 close all G=6.67e-11; p=10.0;%线密度 D=100.0;%深度 x=-200:1:200; g=G*2*p*D./(x.^2+D^2); Vxz=4*G*p*D.*x./(x.^2+D^2).^2; Vzz=2*G*p.*(D^2-x.^2)./(x.^2+D^2).^2; Vzzz=4*G*p.*(D^2-3.*x.^2)./((x.^2+D^2).^3); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距离(m)'); ylabel('重力异常值'); title('水平圆柱体重力异常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vzzz'); grid on %% %垂直台阶 G=6.67e-11; p=4.0;%密度 h1=50.0;%下层深度 h2=40.0;%上层深度 x=-100:1:100; g=G*p.*(pi*(h1-h2)+x.*log((x.^2+h1^2)./(x.^2+h2^2))+2*h1.*atan(x./h1)-2*h2.*atan(x./h2)); Vxz=G*p.*log((h1^2+x.^2)./(h2^2+x.^2)); Vzz=2*G*p.*atan((x.*(h1-h2))./(x.^2+h1*h2)); Vzzz=2*G*p.*x*(h1^2-h2^2)./((h1^2+x.^2).*(x.^2+h2^2)); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距离(m)'); ylabel('重力异常值'); title('垂直台阶重力异常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vzzz'); grid on %% %倾斜台阶 G=6.67e-11; p=4.0;%密度 h1=50.0;%下层深度 h2=40.0;%上层深度 a=pi/6;%倾斜角度 x=-500:1:500; g=G*p.*(pi*(h1-h2)+2*h1.*atan((x+h1*cot(a))./h1)-2*h2.*atan((x+h2*cot(a))./h1)+x.*sin(a)^2.*log(((h1+x.*sin(a).*cos(a)).^2+x.^2.*sin(a)^4)./((h2+x.*(sin(a)*cos(a))).^2+x.^2.*sin(a)^4))); Vxz=G*p.*(sin(a)^2.*log(((h1*cot(a)+x).^2+h1^2)./((h2*cot(a)+x).^2+h2^2))-2*sin(2*a).*(atan((h1/sin(a)+x.*cos(a))./(x.*sin(a)))-atan((h2/sin(a)+x.^cos(a))./(sin(a).*x)))); Vzz=G*p.*(0.5*sin(2*a)^2.*log(((h1*cot(a)+x).^2+h1^2)./((h2*cot(a)+x).^2+h2^2))+2*sin(a)^2.*(atan((h1/sin(a)+x.*cos(a))./(x.*sin(a)))-atan((h2/sin(a)+x.*cos(a))./(x.*sin(a))))); Vzzz=2*G*p*sin(a)^2.*((x+2*h2*cot(a))./((h2*cot(a)+x).^2+h2^2)-(x+2*h1*cot(a))./((h1*cot(a)+x).^2+h1^2)); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距离(m)'); ylabel('重力异常值'); title('倾斜台阶重力异常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vzzz'); grid on %% %铅锤柱体 G=6.67e-11; p=4.0;%密度 h1=50.0;%下层深度 h2=40.0;%上层深度 a=3;%半径 x=-500:1:500; g=G*p.*((x+a).*log(((x+a).^2+h1^2)./((x+a).^2+h2^2))-(x-a).*log(((x-a).^2+h1^2)./((x-a).^2+h2^2))+2*h1.*(atan((x+a)./h1)-atan((x-a)./h1))-2*h2.*(atan((x+a)./h2)-atan((x-a)./h2))); Vxz=G*p.*log((((x+a).^2+h1^2).*((x-a).^2+h2^2))./(((x+a).^2+h2^2).*((x-a).^2+h1^2))); Vzz=2*G*p.*(atan(h1./(x+a))-atan(h2./(x+a))-atan(h1./(x-a))+atan(h2./(x-a))); Vzzz=2*G*p.*((x+a)./((x+a).^2+h2^2)-(x+a)./((x+a).^2+h1^2)-(x-a)./((x-a).^2+h2^2)+(x-a)./((x-a).^2+h1^2)); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距离/m') ylabel('重力异常值') title('铅垂柱体重力异常') grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距离(m)'); ylabel('导数值'); title('Vzzz'); grid on

    标签: MATLAB 重力 程序

    上传时间: 2019-05-10

    上传用户:xiajiang

  • 数组子系统

    #include <stdio.h> #include <stdlib.h> #define SMAX 100 typedef struct SPNode { int i,j,v; }SPNode; struct sparmatrix { int rows,cols,terms; SPNode data [SMAX]; }; sparmatrix CreateSparmatrix() { sparmatrix A; printf("\n\t\t请输入稀疏矩阵的行数,列数和非零元素个数(用逗号隔开):"); scanf("%d,%d,%d",&A.cols,&A.terms); for(int n=0;n<=A.terms-1;n++) { printf("\n\t\t输入非零元素值(格式:行号,列号,值):"); scanf("%d,%d,%d",&A.data[n].i,&A.data[n].j,&A.data[n].v); } return A; } void ShowSparmatrix(sparmatrix A) { int k; printf("\n\t\t"); for(int x=0;x<=A.rows-1;x++) { for(int y=0;y<=A.cols-1;y++) { k=0; for(int n=0;n<=A.terms-1;n++) { if((A.data[n].i-1==x)&&(A.data[n].j-1==y)) { printf("%8d",A.data[n].v); k=1; } } if(k==0) printf("%8d",k); } printf("\n\t\t"); } } void sumsparmatrix(sparmatrix A) { SPNode *p; p=(SPNode*)malloc(sizeof(SPNode)); p->v=0; int k; k=0; printf("\n\t\t"); for(int x=0;x<=A.rows-1;x++) { for(int y=0;y<=A.cols-1;y++) { for(int n=0;n<=A.terms;n++) { if((A.data[n].i==x)&&(A.data[n].j==y)&&(x==y)) { p->v=p->v+A.data[n].v; k=1; } } } printf("\n\t\t"); } if(k==1) printf("\n\t\t对角线元素的和::%d\n",p->v); else printf("\n\t\t对角线元素的和为::0"); } int main() { int ch=1,choice; struct sparmatrix A; A.terms=0; while(ch) { printf("\n"); printf("\n\t\t      稀疏矩阵的三元组系统       "); printf("\n\t\t*********************************"); printf("\n\t\t      1------------创建          "); printf("\n\t\t      2------------显示          "); printf("\n\t\t      3------------求对角线元素和"); printf("\n\t\t      4------------返回          "); printf("\n\t\t*********************************"); printf("\n\t\t请选择菜单号(0-3):"); scanf("%d",&choice); switch(choice) { case 1: A=CreateSparmatrix(); break; case 2: ShowSparmatrix(A); break; case 3: SumSparmatrix(A); break; default: system("cls"); printf("\n\t\t输入错误!请重新输入!\n"); break; } if (choice==1||choice==2||choice==3) { printf("\n\t\t"); system("pause"); system("cls"); } else system("cls"); } }

    标签: 数组 子系统

    上传时间: 2020-06-11

    上传用户:ccccy

  • 三相交流调压电路的matlab仿真设计

    工作原理分析,主要分析电阻负载时的情况:1,任一相导通须和另一相构成回路,因此,和三相全控整流电路一样,电流流通路径中有两个晶闸管,所以应采用双脉冲或宽脉冲触发。2,三相的触发脉冲依次相差120",同一相的两个反并联晶闸管触发脉冲应相差180因此触发脉冲顺序和三相桥式全控整流电路一样,为VTI vT6,依次相差6003,如果把晶闸管换成二极管可以看出,相电流和相电压同相位,且相电压过零食二极管开始导通。因此把相电压过零点定为触发延迟角a的起点,三相三线电路中,两相间导通是靠线电压导通的,而线电压超前相电压30",因此,a角移范围是0~ 150根据任一时刻导通晶闸管个数及半个周波内电流是否连续,可将0"-150"的移相范围分为如下三段:(1)0"< a<60":电路处于三管导通与两管导通交替,每管导通180"-a。但a-0时是种特殊情况,一直是三管导通。(2)60"<a< 90:任一时刻都是两管导通,每管的导通角都是120(3)90"<a< 150":电路处于两管号通与无晶同管导通交替状态,每个晶闸管导通角为300-2a。而且这个导通角被分割为不连续的两部分,在半周波内形成两个断续的波头,各占150"-a.

    标签: 三相交流调压电路 matlab

    上传时间: 2022-06-22

    上传用户:bluedrops

  • L6470Demo程序

    STM32F驱动L6470   ■ Operating voltage: 8 - 45 V■ 7.0 A out peak current (3.0 A r.m.s.)■ Low RDS(on) Power MOSFETs■ Programmable speed profile and positioning■ Programmable power MOS slew rate■ Up to 1/128 microstepping■ Sensorless stall detection■ SPI interface■ Low quiescent and standby currents■ Programmable non-dissipative overcurrentprotection on high and low-side■ Two levels of overtemperature protection

    标签: l6470

    上传时间: 2022-07-25

    上传用户:kingwide

  • VIP专区-单片机源代码精选合集系列(43)

    eeworm.com VIP专区 单片机源码系列 43资源包含以下内容:1. 用移位寄存器制作步进电机驱动电路.pdf2. 电子设计大赛点阵电子显示屏(A题)20页 0.2M.pdf3. C语言求鞍点.docx4. C语言程序设计(第三版)-谭浩强.ppt5. 巧用8051单片机的奇偶校验位.pdf6. 8.8LED点阵字库软件.rar7. 新编MCS-51单片机应用设计.pdf8. 51汇编指令表.xls9. 单片机C语言程序设计实训100例——基于8051+Proteus仿真.pdf10. 初学者很实用的51单片机35个源程序案例.rar11. MEGA16单片机用TC1定时器制作的秒表.rar12. wnbond 51 timer tool.exe13. 电阻并联计算器(计算电阻的小软件).exe14. 51单片机串行口初值计算器.exe15. 汉字LED点阵显示.doc16. 电动车跷跷板.zip17. keil C51 UV2调试命令(中文版).pdf18. 心电图程序.rar19. 串口通讯(查询方式)实验成功.rar20. PCB器件示意图.pdf21. 基于AVR单片机的木材含水率测试系统设计.pdf22. 51单片机c语言教程全集.doc23. 51单片机教程.rar24. 合工大--单片微型计算机技术资料.rar25. msp430f149 datasheet.pdf26. ds1302时钟.rar27. MSP430反汇编.exe28. TI省级电赛题.rar29. 单片机设计存档.rar30. 温湿度传感器DHT11.doc31. 生命沙漏核心算法.rar32. 基于P89V51RD2单片机LED点阵显示屏的实现.zip33. 基于DMA控制器的UART串行通信设计.zip34. 智能对线仪源代码.doc35. 基于C8051F单片机的便携式采集终端的设计.zip36. 一种新型太阳能热水器控制电路的设计.pdf37. 上海交大SpeedStar技术报告_智能小车.pdf38. 基于BASIC Stamp核心设计温度记录系统.zip39. C陷阱与缺陷.pdf40. STC单片机波特率计算器.rar41. PC104对OV7670寄存器的读写.zip42. 超易单片机入门(小学生都能看得懂的PIC教程).doc43. C51汉字解决方案.rar44. MSP430单片机在PTN产品中的应用.zip45. 中文点阵字库的使用方法.rar46. 数码管引脚图.doc47. 单片机系统指纹模块的使用.pdf48. 单片机毕业论文 一些设计.rar49. 情景三 中断和定时器的应用.ppt50. 单片机与RD-D型微打使用说明.PDF51. 2012年MCU技术交流大会.pdf52. 单片机外围电路扩展.ppt53. 单片机基础.pdf54. 有报警功能的密码开关.zip55. 心形流水灯程序.rar56. 单片机的串行扩展技术.doc57. 精简型mcu 的两个介绍.pdf58. 抢答器电路+程序.rar59. 51单片机C语言应用程序设计实例精讲(第二版)part01.pdf60. 点阵资料.pdf61. 单片微型计算机的初步认知.ppt62. proteus仿真元件库元件名称.doc63. USB转串口驱动程序.rar64. 红外遥控的单片机解码.pdf65. 汇编指令大全+很全的汇编指令.pdf66. 新手学单片机,前期所有实验汇总(汇编语言).rar67. C8051F340单片机开发板学习.rar68. 数码表(汇编).rar69. 轻松学数字电路.doc70. 单片机延时计算小程序.exe71. 基本电子概念.doc72. 51单片机开发入门与典型实例.rar73. 12864图形液晶显示模块与51系列单片机接口技术.pdf74. 交通灯的单片机控制.doc75. 计程车计价毕业设计.rar76. ARM芯片 POP文本显示器 编程软件 下载!.exe77. 430单片机的设计.doc78. 简单交通灯.zip79. USB转TTL原理图.pdf80. 利用触键唤醒中断完成外部中断.rar81. ADC0808 Basic.zip82. 单片机实验箱使用手册—删节版.doc83. 步进电机汽车仪表.pdf84. 可控电子时钟程序.doc85. AU6331方案SD卡读卡器电路原理图.rar86. MB9BF50中文外设手册.pdf87. 七段LED显示驱动码查询器.zip88. 54-74HC全系列高速CMOS速查手册.rar89. AVR单片机C语言开发入门指导(1).pdf90. 51串行通信例程.rar91. 低功耗设计综述.rar92. 用VB编写上位机实例.doc93. 51单片机汇编指令周期表.doc94. 计数器程序.doc95. labview串口.pdf96. S3C44B0X-datasheet.pdf97. 51单片机编程.docx98. Keil C51语言使用技巧及实战.pdf99. 谭浩强c语言.exe100. C51初级红板-PL2303.pdf

    标签: 电器 生产厂 电磁铁

    上传时间: 2013-05-25

    上传用户:eeworm

  • VIP专区-嵌入式/单片机编程源码精选合集系列(37)

    VIP专区-嵌入式/单片机编程源码精选合集系列(37)资源包含以下内容:1. at91sam64编程实例.2. 一个用asm写的操作系统原型 很适合大家学习学习.3. 本文详细介绍了学习FREEBSD的一些命令.4. 一个12路串口+3路Socket口的数据收发程序 嵌入式ucLinux操作系统下调试通过.5. c语言中写二进制数。引用例子: #define Bin(n) LongToBin(0x##n##l) void main(void) { unsigned char c c =.6. 此程序是利用2051单片机P1.0,P1.1精密比较器功能实现a/d转换通过P1.0电位器调节.7. 《KEIL C51 Vision2 中文入门教程》翻译.8. 基于单片机、nrf24e1发射接受程序.9. 一个用于控制LCD panel显示的驱动程序。控制LCD读写和显示控制。.10. libminigui-1.3.3.tar.gz。 对想学习miniGUI的朋友这是非常好的自学资料!.11. libminigui-1.3.0.tar.gz。 miniGUI的库函数源代码!.12. 8255 输入、输出实验的汇编程序清单         方式0.13. 深圳金鹏液晶自带汉字显示模块4*15D的使用例程.14. Keyboard Source code for 68HC705J1A,供胡次使用68HC705J1A.15. 用于小商品消费的SMS消费机程序.16. 是上一个SMS消费机的充值机程序.17. 以上几个手持机的初始化程序.18. 68K328手持开发说明文档.19. 这是一个ARM的实验。主要是使用PWM6输出一个固定占空比的单边沿控制PWM信号.20. 这是一个语音电压表.21. 具有原始语音播放功能.22. 是一个按键控制的录音笔.23. 是一个飞翔的小鸟.24. 用汇编和C编写的.25. 卷积码的C源程序.26. 1.在发送端通过一个编码系统对待传数据预先编码.27. lcd液晶显示器的单片机地层驱动程序以及字符点阵生成器,刚刚做完的项目,希望对大家有用.28. ActiveTcl is ActiveState s quality-assured distribution of Tcl, available for AIX, HP-UX, Linux, Mac.29. 是TCL的另外一个编译(解释)器.30. AT88SC102及AT88SC1604 IC卡的读写(C51编写)测试表明程序工作可靠.31. i2c软件包, 很有用, 也非常简单.32. 一个德国人用汇编写的基于15个采样点的dcc编码器.33. 一个德国人写的基于15各采样点的dcc解码器.34. 本程序是针对T6963C控制器的LCD接口的驱动程序。.35. key(键盘子程序).36. s_serial(c51用io口模拟串口).37. PS键盘与单片机连接.38. 在51移植的ucos2源代码 UCOS2_KEIL.39. 单片机自发自收CAN通讯 c51_can_self.40. 日立单片机实现IIC的的程序,由C语言写出,已经调试通过,可以放心使用.

    标签: 工程图

    上传时间: 2013-06-02

    上传用户:eeworm