PageSourceSearch

https://refractiveindex.info/include/misc.js?ver=2025-01-11

js refractiveindex.info collected 2026-10-01 11:32:25 UTC 350 bytes, 17 lines download raw bytes

1//degrees to radians
2function deg2rad(angle){
3    return angle/180*Math.PI;
4}
5// radians to degrees
6function rad2deg(angle){
7    return angle/Math.PI*180;
8}
9// sinh() and cosh() not readily available in JaveScript
10function sinh(c){
11	var p = Math.pow(Math.E,c);
12	return (p-1/p)/2;
13}
14function cosh(c){
15	var p = Math.pow(Math.E,c);
16	return (p+1/p)/2;
17}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.