modified first kind (I) handle negative argument
This commit is contained in:
		
							parent
							
								
									2e23313298
								
							
						
					
					
						commit
						9f2a11ec29
					
				| @ -17,6 +17,7 @@ var besseli/*:BesselF*/ = (function() { | ||||
| 
 | ||||
|   return function besseli(x/*:number*/, n/*:number*/)/*:number*/ { | ||||
|     n = Math.round(n); | ||||
|     if(x < 0) return ((n%2)?-1:1)*besseli(-x, n); | ||||
|     if(n === 0) return bessel0(x); | ||||
|     if(n === 1) return bessel1(x); | ||||
|     if(n < 0) return NaN; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user