软件世界网 购物 网址 三丰软件 | 小说 美女秀 图库大全 游戏 笑话 | 下载 开发知识库 新闻 开发 图片素材
多播视频美女直播
↓电视,电影,美女直播,迅雷资源↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
移动开发 架构设计 编程语言 Web前端 互联网
开发杂谈 系统运维 研发管理 数据库 云计算 Android开发资料
  软件世界网 -> 编程语言 -> [从头学数学]第158节反比例函数 -> 正文阅读

[编程语言][从头学数学]第158节反比例函数

剧情提要:
[机器小伟]在[工程师阿伟]的陪同下进入了筑基后期的修炼,
这次要修炼的目标是[反比例函数]。


正剧开始:
星历2016年04月03日 09:22:03, 银河系厄尔斯星球中华帝国江南行省。
[工程师阿伟]正在和[机器小伟]一起研究[反比例函数]。



今天,小伟又去向[人叫板老师]要来了筑基后期的后半层功法,到此为止,
筑基期的功法就全了:
[img]http://img.blog.csdn.net/20160403092025957



而今天主要研究的,就是这个第26章:反比例函数。
[img]http://img.blog.csdn.net/20160403092122411



[img]http://img.blog.csdn.net/20160403092129161

[img]http://img.blog.csdn.net/20160403092136145

[img]http://img.blog.csdn.net/20160403092215661

[img]http://img.blog.csdn.net/20160403092222520

[img]http://img.blog.csdn.net/20160403092230177



[img]http://img.blog.csdn.net/20160403092256458

<span style="font-size:18px;">	if (1) {
	
		var r = 20;    
        config.setSector(1,1,1,1);      
        config.graphPaper2D(0, 0, r);    
        config.axis2D(0, 0,180, 1);      
        
        var scaleX = 2*r, scaleY = 2*r;  
        var spaceX = 2, spaceY = 2;   
        var xS = -10, xE = 10;  
        var yS = -10, yE = 10;  
        config.axisSpacing(xS, xE, spaceX, scaleX, 'X');    
        config.axisSpacing(yS, yE, spaceY, scaleY, 'Y');    
            
        var transform = new Transform();    
        var a = [], b = [], c = [];  
          
        for (var x = xS; x <= xE; x+=1) {  
			if (x != 0) {
				a.push([x, 6/x]);  
				b.push([x, 12/x]);  
			}
        }  
          
          
            
        a = transform.scale(transform.translate(a, 0, 0), scaleX/spaceX, scaleY/spaceY);   
        b = transform.scale(transform.translate(b, 0, 0), scaleX/spaceX, scaleY/spaceY);  
            
        var tmp = [].concat(a);    
        shape.pointDraw(tmp, 'red');    
        tmp = [].concat(a);    
        shape.multiLineDraw(tmp, 'pink');  
          
		plot.setFillStyle('red');
        plot.fillText('y=6/x', 100, -100, 200);  
         
          
        tmp = [].concat(b);    
        shape.pointDraw(tmp, 'blue');    
        tmp = [].concat(b);    
        shape.multiLineDraw(tmp, '#22CCFF'); 
		
		plot.setFillStyle('blue');
		plot.fillText('y=12/x', 100, -150, 200); 

	}</span>



[img]http://img.blog.csdn.net/20160403092358490

<span style="font-size:18px;">		var r = 20;    
        config.setSector(1,1,1,1);      
        config.graphPaper2D(0, 0, r);    
        config.axis2D(0, 0,180, 1);      
        
		//坐标轴设定
        var scaleX = 2*r, scaleY = 2*r;  
        var spaceX = 2, spaceY = 2;   
        var xS = -10, xE = 10;  
        var yS = -10, yE = 10;  
        config.axisSpacing(xS, xE, spaceX, scaleX, 'X');    
        config.axisSpacing(yS, yE, spaceY, scaleY, 'Y');    
            
        var transform = new Transform();    
		//存放函数图像上的点
        var a = [], b = [], c = [], d = [];  
          
		//需要显示的函数说明
		var f1 = 'y=6/x', f2 = 'y=12/x', f3 = 'y=-6/x', f4 = 'y=-12/x';
		//函数描点
        for (var x = xS; x <= xE; x+=1) {  
			if (x != 0) {
				a.push([x, 6/x]);  
				b.push([x, 12/x]);  
				c.push([x, -6/x]); 
				d.push([x, -12/x]); 
			}
        }  
          
		//存放临时数组
		var tmp = [];
          
        //显示变换
		if (a != []) {
			a = transform.scale(transform.translate(a, 0, 0), scaleX/spaceX, scaleY/spaceY); 
			//函数1
			tmp = [].concat(a);    
			shape.pointDraw(tmp, 'red');    
			tmp = [].concat(a);    
			shape.multiLineDraw(tmp, 'pink');  
			  
			plot.setFillStyle('red');
			plot.fillText(f1, 100, -90, 200);  
		}
		
		if (b != []) {
			b = transform.scale(transform.translate(b, 0, 0), scaleX/spaceX, scaleY/spaceY);  		    
			//函数2
			tmp = [].concat(b);    
			shape.pointDraw(tmp, 'blue');    
			tmp = [].concat(b);    
			shape.multiLineDraw(tmp, '#22CCFF'); 
			
			plot.setFillStyle('blue');
			plot.fillText(f2, 100, -120, 200); 

		}
           
		if (c != []) {
			c = transform.scale(transform.translate(c, 0, 0), scaleX/spaceX, scaleY/spaceY);  
			tmp = [].concat(c);    
			shape.pointDraw(tmp, 'green');    
			tmp = [].concat(c);    
			shape.multiLineDraw(tmp, '#CCFF22');  
			plot.setFillStyle('green');  
			plot.fillText(f3, 100, -150, 200); 
		}
		
		if (d != []) {
			d = transform.scale(transform.translate(d, 0, 0), scaleX/spaceX, scaleY/spaceY);  
			tmp = [].concat(d);    
			shape.pointDraw(tmp, 'orange');    
			tmp = [].concat(d);    
			shape.multiLineDraw(tmp, '#CC8800');  
			plot.setFillStyle('orange');  
			plot.fillText(f4, 100, -180, 200); 
		}

         

	}
	</span>






[img]http://img.blog.csdn.net/20160403092323099
[img]http://img.blog.csdn.net/20160403092440349
<span style="font-size:18px;">	if (1) {
	
		var r = 20;    
        config.setSector(1,1,1,1);      
        config.graphPaper2D(0, 0, r);    
        config.axis2D(0, 0,180, 1);      
        
		//坐标轴设定
        var scaleX = 2*r, scaleY = 2*r;  
        var spaceX = 2, spaceY = 2;   
        var xS = -10, xE = 10;  
        var yS = -10, yE = 10;  
        config.axisSpacing(xS, xE, spaceX, scaleX, 'X');    
        config.axisSpacing(yS, yE, spaceY, scaleY, 'Y');    
            
        var transform = new Transform();    

		//存放函数图像上的点
        var a = [], b = [], c = [], d = [];  
          
		//需要显示的函数说明
		var f1 = 'y=1/x', f2 = 'y=x', f3 = '', f4 = '';
		//函数描点
		
		var x = xS;
		
		while (x <= xE) {
			if (Math.abs(x) <= 2) {
				x += 0.25;
			}
			else {
				x += 1;
			}
			
			if (x != 0) {
				a.push([x, 1/x]);  
				b.push([x, x]);  

			}
		}
			
        
		//存放临时数组
		var tmp = [];
          
        //显示变换
		if (a.length > 0) {
			a = transform.scale(transform.translate(a, 0, 0), scaleX/spaceX, scaleY/spaceY); 
			//函数1
			tmp = [].concat(a);    
			shape.pointDraw(tmp, 'red');    
			tmp = [].concat(a);    
			shape.multiLineDraw(tmp, 'pink');  
			  
			plot.setFillStyle('red');
			plot.fillText(f1, 100, -90, 200);  
		}
		
		if (b.length > 0) {
			b = transform.scale(transform.translate(b, 0, 0), scaleX/spaceX, scaleY/spaceY);  		    
			//函数2
			tmp = [].concat(b);    
			shape.pointDraw(tmp, 'blue');    
			tmp = [].concat(b);    
			shape.multiLineDraw(tmp, '#22CCFF'); 
			
			plot.setFillStyle('blue');
			plot.fillText(f2, 100, -120, 200); 

		}
         
		if (c.length > 0) {
			c = transform.scale(transform.translate(c, 0, 0), scaleX/spaceX, scaleY/spaceY);  
			tmp = [].concat(c);    
			shape.pointDraw(tmp, 'green');    
			tmp = [].concat(c);    
			shape.multiLineDraw(tmp, '#CCFF22');  
			plot.setFillStyle('green');  
			plot.fillText(f3, 100, -150, 200); 
		}
		
		if (d.length > 0) {
			d = transform.scale(transform.translate(d, 0, 0), scaleX/spaceX, scaleY/spaceY);  
			tmp = [].concat(d);    
			shape.pointDraw(tmp, 'orange');    
			tmp = [].concat(d);    
			shape.multiLineDraw(tmp, '#CC8800');  
			plot.setFillStyle('orange');  
			plot.fillText(f4, 100, -180, 200); 
		}

         

	}</span>

[img]http://img.blog.csdn.net/20160403092523975

[img]http://img.blog.csdn.net/20160403092530490

[img]http://img.blog.csdn.net/20160403092610819

<span style="font-size:18px;">	if (1) {
	
		var r = 20;    
        config.setSector(1,1,1,1);      
        config.graphPaper2D(0, 0, r);    
        config.axis2D(0, 0,180, 1.5);      
        
		//坐标轴设定
        var scaleX = 2*r, scaleY = 2*r;  
        var spaceX = 2, spaceY = 2;   
        var xS = -10, xE = 10;  
        var yS = -10, yE = 10;  
        config.axisSpacing(xS, xE, spaceX, scaleX, 'X');    
        config.axisSpacing(yS, yE, spaceY, scaleY, 'Y');    
            
        var transform = new Transform();    

		//存放函数图像上的点
        var a = [], b = [], c = [], d = [];  
          
		//需要显示的函数说明
		var f1 = 'y=1/x', f2 = 'y=3/x', f3 = 'y=5/x', f4 = 'y=7/x';
		//函数描点
		
		var x = xS;
		
		while (x <= xE) {
			if (Math.abs(x) <= 2) {
				x += 0.25;
			}
			else {
				x += 1;
			}
			
			if (x != 0) {
				a.push([x, 1/x]);  
				b.push([x, 3/x]);  
				c.push([x, 5/x]);
				d.push([x, 7/x]);

			}
		}
			
        
		//存放临时数组
		var tmp = [];
          
        //显示变换
		if (a.length > 0) {
			a = transform.scale(transform.translate(a, 0, 0), scaleX/spaceX, scaleY/spaceY); 
			//函数1
			tmp = [].concat(a);    
			shape.pointDraw(tmp, 'red');    
			tmp = [].concat(a);    
			shape.multiLineDraw(tmp, 'pink');  
			  
			plot.setFillStyle('red');
			plot.fillText(f1, 200, -90, 200);  
		}
		
		if (b.length > 0) {
			b = transform.scale(transform.translate(b, 0, 0), scaleX/spaceX, scaleY/spaceY);  		    
			//函数2
			tmp = [].concat(b);    
			shape.pointDraw(tmp, 'blue');    
			tmp = [].concat(b);    
			shape.multiLineDraw(tmp, '#22CCFF'); 
			
			plot.setFillStyle('blue');
			plot.fillText(f2, 200, -120, 200); 

		}
         
		if (c.length > 0) {
			c = transform.scale(transform.translate(c, 0, 0), scaleX/spaceX, scaleY/spaceY);  
			tmp = [].concat(c);    
			shape.pointDraw(tmp, 'green');    
			tmp = [].concat(c);    
			shape.multiLineDraw(tmp, '#CCFF22');  
			plot.setFillStyle('green');  
			plot.fillText(f3, 200, -150, 200); 
		}
		
		if (d.length > 0) {
			d = transform.scale(transform.translate(d, 0, 0), scaleX/spaceX, scaleY/spaceY);  
			tmp = [].concat(d);    
			shape.pointDraw(tmp, 'orange');    
			tmp = [].concat(d);    
			shape.multiLineDraw(tmp, '#CC8800');  
			plot.setFillStyle('orange');  
			plot.fillText(f4, 200, -180, 200); 
		}

         

	}</span>

[img]http://img.blog.csdn.net/20160403092637616



<span style="font-size:18px;">	if (1) {
	
		var r = 20;    
        config.setSector(1,1,1,1);      
        config.graphPaper2D(0, 0, r);    
        config.axis2D(0, 0,180, 1.5);      
        
		//坐标轴设定
        var scaleX = 2*r, scaleY = 2*r;  
        var spaceX = 2, spaceY = 2;   
        var xS = -10, xE = 10;  
        var yS = -10, yE = 10;  
        config.axisSpacing(xS, xE, spaceX, scaleX, 'X');    
        config.axisSpacing(yS, yE, spaceY, scaleY, 'Y');    
            
        var transform = new Transform();    

		//存放函数图像上的点
        var a = [], b = [], c = [], d = [];  
          
		//需要显示的函数说明
		var f1 = 'y=-1/x', f2 = 'y=-3/x', f3 = 'y=-5/x', f4 = 'y=-7/x';
		//函数描点
		
		var x = xS;
		
		while (x <= xE) {
			if (Math.abs(x) <= 2) {
				x += 0.25;
			}
			else {
				x += 1;
			}
			
			if (x != 0) {
				a.push([x, -1/x]);  
				b.push([x, -3/x]);  
				c.push([x, -5/x]);
				d.push([x, -7/x]);

			}
		}
			
        
		//存放临时数组
		var tmp = [];
          
        //显示变换
		if (a.length > 0) {
			a = transform.scale(transform.translate(a, 0, 0), scaleX/spaceX, scaleY/spaceY); 
			//函数1
			tmp = [].concat(a);    
			shape.pointDraw(tmp, 'red');    
			tmp = [].concat(a);    
			shape.multiLineDraw(tmp, 'pink');  
			  
			plot.setFillStyle('red');
			plot.fillText(f1, 200, -90, 200);  
		}
		
		if (b.length > 0) {
			b = transform.scale(transform.translate(b, 0, 0), scaleX/spaceX, scaleY/spaceY);  		    
			//函数2
			tmp = [].concat(b);    
			shape.pointDraw(tmp, 'blue');    
			tmp = [].concat(b);    
			shape.multiLineDraw(tmp, '#22CCFF'); 
			
			plot.setFillStyle('blue');
			plot.fillText(f2, 200, -120, 200); 

		}
         
		if (c.length > 0) {
			c = transform.scale(transform.translate(c, 0, 0), scaleX/spaceX, scaleY/spaceY);  
			tmp = [].concat(c);    
			shape.pointDraw(tmp, 'green');    
			tmp = [].concat(c);    
			shape.multiLineDraw(tmp, '#CCFF22');  
			plot.setFillStyle('green');  
			plot.fillText(f3, 200, -150, 200); 
		}
		
		if (d.length > 0) {
			d = transform.scale(transform.translate(d, 0, 0), scaleX/spaceX, scaleY/spaceY);  
			tmp = [].concat(d);    
			shape.pointDraw(tmp, 'orange');    
			tmp = [].concat(d);    
			shape.multiLineDraw(tmp, '#CC8800');  
			plot.setFillStyle('orange');  
			plot.fillText(f4, 200, -180, 200); 
		}

         

	}
	</span>

本节到此结束,欲知后事如何,请看下回分解。

......显示全文...
    点击查看全文


上一篇文章      下一篇文章      查看所有文章
2016-04-03 20:43:25  
编程语言 最新文章
Java面试题(1)
ReactiveX序列——RxSwift
C++STL之ACM相关知识大全
c++中vector向量几种情况的总结(向量指针,
SSH框架整合demo
JAX
UVA
curl备忘(1)
C#机房重构——万事开头难(二)
OJ刷题
360图书馆 软件开发资料 文字转语音 购物精选 软件下载 美食菜谱 新闻资讯 电影视频 小游戏 Chinese Culture 股票 租车
生肖星座 三丰软件 视频 开发 短信 中国文化 网文精选 搜图网 美图 阅读网 多播 租车 短信 看图 日历 万年历 2018年1日历
2018-1-23 3:42:57
多播视频美女直播
↓电视,电影,美女直播,迅雷资源↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  软件世界网 --