let getRandomPolynom = () => {
const [ A, B, C, D ] = Array.from({ length: 4 }, this.getRandomZ);
return x => A * x**4 + B * x**3 + C * x**2 + D ** x + 10;
}
let polynom = getRandomPolynom();
console.log(polynom)
// return x => A * x**4 + B * x**3 + C * x**2 + D ** x + 10;
let x = 0;
let step = this.width / pointsNum;
let getRandomPolynom = () => x => this.getRandomZ() * x^4 + this.getRandomZ() * x^3 - this.getRandomZ() * x^2 + -this.getRandomZ() * x + 10
let polynom = getRandomPolynom();
return Array(pointsNum).fill(null).map(() => {
x += step;
return [x, polynom(x)];
})
config: {
iceServers: [
{ url: "stun:stun01.sipphone.com" },
{ url: "stun:stun.ekiga.net" },
{ url: "stun:stun.fwdnet.net" },
{ url: "stun:stun.ideasip.com" },
{ url: "stun:stun.iptel.org" },
{ url: "stun:stun.rixtelecom.se" },
{ url: "stun:stun.schlund.de" },
{ url: "stun:stun.l.google.com:19302" },
{ url: "stun:stun1.l.google.com:19302" },
{ url: "stun:stun2.l.google.com:19302" },
{ url: "stun:stun3.l.google.com:19302" },
{ url: "stun:stun4.l.google.com:19302" },
{ url: "stun:stunserver.org" },
{ url: "stun:stun.softjoys.com" },
{ url: "stun:stun.voiparound.com" },
{ url: "stun:stun.voipbuster.com" },
{ url: "stun:stun.voipstunt.com" },
{ url: "stun:stun.voxgratia.org" },
{ url: "stun:stun.xten.com" },
{
url: "turn:numb.viagenie.ca",
credential: "muazkh",
username: "webrtc@live.com"
},
{
url: "turn:192.158.29.39:3478?transport=udp",
credential: "JZEOEt2V3Qb0y27GRntt2u2PAYA=",
username: "28224511:1379330808"
},
{
url: "turn:192.158.29.39:3478?transport=tcp",
credential: "JZEOEt2V3Qb0y27GRntt2u2PAYA=",
username: "28224511:1379330808"
},
{
url: "turn:turn.bistri.com:80",
credential: "homeo",
username: "homeo"
},
{
url: "turn:turn.anyfirewall.com:443?transport=tcp",
credential: "webrtc",
username: "webrtc"
}
]
}