<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<body>
<div align="center">例如输入:a=3, b=6, c=-123, d=-126 e=1080</div>
<form name="form1" action="">
ax<sup>4</sup> + bx<sup>3</sup> + cx<sup>2</sup> + dx + e = 0
<table border="0" align="center" colspan="4" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><input type="text" name="aIn" size="5" placeholder="a">x<sup>4</sup> +</td>
<td><input type="text" name="bIn" size="5" placeholder="b">x³ +</td>
<td><input type="text" name="cIn" size="5" placeholder="c">x² +</td>
<td><input type="text" name="dIn" size="5" placeholder="d">x +</td>
<td><input type="text" name="eIn" size="5" placeholder="e">e</td>
</tr>
</tbody>
</table>
<center>
<input type="button" name="button1" value="计算" onclick="quad4solve(this.form)">
</center>
<table border="0" class="innerc" cellspacing="0" cellpadding="3">
<tbody>
<tr align="center">
<td class="inner" colspan="4"><b>结果:</b></td>
</tr>
<tr>
<td>x<sub>1</sub>:
<input type="text" name="x1Re" size="25"> +
<input type="text" name="x1Im" size="25"> i
</td>
</tr>
<tr>
<td>x<sub>2</sub>:
<input type="text" name="x2Re" size="25"> +
<input type="text" name="x2Im" size="25"> i
</td>
</tr>
<tr>
<td>x<sub>3</sub>:
<input type="text" name="x3Re" size="25"> +
<input type="text" name="x3Im" size="25"> i
</td>
</tr>
<tr>
<td>x<sub>4</sub>:
<input type="text" name="x4Re" size="25"> +
<input type="text" name="x4Im" size="25"> i
</td>
</tr>
</tbody>
</table>
</form>
<script type="text/javascript">
function quad4solve(dataForm)
{
var a = parseFloat(dataForm.aIn.value);
var b = parseFloat(dataForm.bIn.value);
var c = parseFloat(dataForm.cIn.value);
var d = parseFloat(dataForm.dIn.value);
var e = parseFloat(dataForm.eIn.value);
if (a == 0)
{
alert("The coefficient of the power four of x is 0. Please use the utility for a third degree quadratic.");
return;
}
if (e == 0)
{
alert("One root is 0. Now divide through by x and use the utility for a third degree quadratic to solve the resulting equation for the other three roots.");
return;
}
if (a != 1)
{
b /= a;
c /= a;
d /= a;
e /= a;
}
//立方解算器系数
var cb, cc, cd;
var discrim, q, r, RRe, RIm, DRe, DIm, dum1, ERe, EIm, s, t, term1, r13, sqR, y1, z1Re, z1Im, z2Re;
cb = -c;
cc = -4.0*e + d*b;
cd = -(b*b*e + d*d) + 4.0*c*e;
if (cd == 0)
{
alert("cd = 0.");
}
q = (3.0*cc - (cb*cb))/9.0;
r = -(27.0*cd) + cb*(9.0*cc - 2.0*(cb*cb));
r /= 54.0;
discrim = q*q*q + r*r;
term1 = (cb/3.0);
if (discrim > 0)
{
// 1 实数, 2 复数
s = r + Math.sqrt(discrim);
s = ((s < 0) ? -Math.pow(-s, (1.0/3.0)) : Math.pow(s, (1.0/3.0)));
t = r - Math.sqrt(discrim);
t = ((t < 0) ? -Math.pow(-t, (1.0/3.0)) : Math.pow(t, (1.0/3.0)));
y1 = -term1 + s + t;
}
else
{
if (discrim == 0)
{
r13 = ((r < 0) ? -Math.pow(-r,(1.0/3.0)) : Math.pow(r,(1.0/3.0)));
y1 = -term1 + 2.0*r13;
}
else
{
q = -q;
dum1 = q*q*q;
dum1 = Math.acos(r/Math.sqrt(dum1));
r13 = 2.0*Math.sqrt(q);
y1 = -term1 + r13*Math.cos(dum1/3.0);
}
}
// 确定了y1 分解立方的实根
term1 = b/4.0;
sqR = -c + term1*b + y1;
RRe = RIm = DRe = DIm = ERe = EIm = z1Re = z1Im = z2Re = 0;
if (sqR >= 0)
{
if (sqR == 0)
{
dum1 = -(4.0*e) + y1*y1;
if (dum1 < 0){
z1Im = 2.0*Math.sqrt(-dum1);
} else {
z1Re = 2.0*Math.sqrt(dum1);
z2Re = -z1Re;
}
}
else
{
RRe = Math.sqrt(sqR);
z1Re = -(8.0*d + b*b*b)/4.0 + b*c;
z1Re /= RRe;
z2Re = -z1Re;
}
}
else
{
RIm = Math.sqrt(-sqR);
z1Im = -(8.0*d + b*b*b)/4.0 + b*c;
z1Im /= RIm;
z1Im = -z1Im;
}
z1Re += -(2.0*c + sqR) + 3.0*b*term1;
z2Re += -(2.0*c + sqR) + 3.0*b*term1;
//At this point, z1 and z2 should be the terms under the square root for D and E
if (z1Im == 0)
{ // Both z1 and z2 real
if (z1Re >= 0)
{
DRe = Math.sqrt(z1Re);
}
else
{
DIm = Math.sqrt(-z1Re);
}
if (z2Re >= 0)
{
ERe = Math.sqrt(z2Re);
}
else
{
EIm = Math.sqrt(-z2Re);
}
}
else
{
r = Math.sqrt(z1Re*z1Re + z1Im*z1Im);
r = Math.sqrt(r);
dum1 = Math.atan2(z1Im, z1Re);
dum1 /= 2; //Divide this angle by 2
ERe = DRe = r*Math.cos(dum1);
DIm = r*Math.sin(dum1);
EIm = -DIm;
}
dataForm.x1Re.value = -term1 + (RRe + DRe)/2;
dataForm.x1Im.value = (RIm + DIm)/2;
dataForm.x2Re.value = -(term1 + DRe/2) + RRe/2;
dataForm.x2Im.value = (-DIm + RIm)/2;
dataForm.x3Re.value = -(term1 + RRe/2) + ERe/2;
dataForm.x3Im.value = (-RIm + EIm)/2;
dataForm.x4Re.value = -(term1 + (RRe + ERe)/2);
dataForm.x4Im.value = -(RIm + EIm)/2;
return;
}
</script>
</body>
</html>
I’ve been messing around on Craybet for about a couple months and figured I’d share my experience since there isn’t many posts about this place around here. Registered after seeing an ad and the whole process was like a couple minutes. Starting deposit was ten bucks which is about what you’d expect. I grabbed a sign-up bonus — 100 percent match to $500 plus 50 free spins on Gates of Olympus. Playthrough requirements were 35x and that could be lower but not the worst I’ve seen.
Game selection is decent honestly. There’s titles from Pragmatic Play, Evolution, plus Microgaming — so like Gates of Olympus, Gonzo’s Quest, that kind of thing. Somewhere around 2000 games including table games. Live dealer stuff runs on Evolution which is quality — played some blackjack and Crazy Time with actual croupiers and zero lag issues.
One thing that kinda bugged me was withdrawal times. Tried cashing out with Bitcoin and it took almost two days the first time. Second time around things sped up. You can use Visa, Mastercard, e-wallets like Skrill and Neteller, Bitcoin which covers most bases. I’d check out what they’ve got going on on svnewtech to see for yourself.
Using Craybet from my iPhone is actually smooth. No dedicated app but the web app loads fast and all the games load fine. Played some slots on the bus and no performance issues.
Support at Craybet has been decent — live chat that actually connects pretty quick usually. I contacted them about a bonus that didn’t credit and it was resolved same day. Licensing is operating under a Curacao license and that’s standard for US-friendly sites. It’s not flawless — wish they had more payment options — but for what it is I keep coming back.
I’ve been playing on Craybet for roughly two months now and thought I’d throw out my experience since I haven’t seen a ton of talk about it around here. I signed up randomly one night and the whole process literally took 90 seconds. Minimum deposit is $10 and that’s about what you’d expect. Got a welcome bonus — 100% up to $500 and 50 free spins on Gates of Olympus. Wagering was 35x which is kinda average but not the worst I’ve seen.
The game library is bigger than I expected. There’s stuff from Pragmatic Play, NetEnt, and Play’n GO — so like Book of Dead, Starburst, the usual heavy hitters. Somewhere around a couple thousand titles total if you count everything. Live casino is powered by Evolution and it’s legit — tried baccarat and Crazy Time with real dealers and had no complaints.
Tbh the thing I wasn’t thrilled about was payout speed. I used Skrill and waited almost two days the first time. Second time around things sped up. Payment options include Visa, Mastercard, e-wallets like Skrill and Neteller, and BTC which covers pretty much everything you’d want. You can check out what they’ve got going on over at svnewtech to see for yourself.
Mobile experience on Craybet from my iPhone is actually smooth. No dedicated app though the mobile site loads fast and everything works without issues. Played Book of Dead on my commute and no performance issues.
Customer service on Craybet has been decent — live chat and someone actually responds within a few minutes usually. I contacted them about a pending withdrawal and got it fixed within hours. Not sure about operating under a Curacao license which is what most US-friendly sites. Wouldn’t say it’s perfect — wish they had more payment options — but overall I’m still using it.
So I’ve been using Craybet for roughly two months now and wanted to share my experience since I haven’t seen many posts about them in this forum. Signed up after seeing an ad and registration literally took a couple minutes. Starting deposit was $10 which is pretty standard. I grabbed a sign-up bonus — 100% up to $500 plus fifty free spins on Gates of Olympus. Rollover is 35x and that is kinda average but I’ve dealt with worse.
Their slots catalog is decent honestly. There’s games from Pragmatic Play, Betsoft, plus Big Time Gaming — so like Book of Dead, Gonzo’s Quest, that kind of thing. I’d guess maybe 1500-2000 slots total if you count everything. The live dealer section uses Evolution which is legit — played some blackjack and Crazy Time with actual croupiers and had no complaints.
One thing I wasn’t thrilled about was payout speed. Tried cashing out with Skrill and it took about 48 hours the first time. Second time around it was faster. You can use Visa, Mastercard, Skrill, Neteller, and crypto so that covers most bases. I’d check out what they’ve got going on at CrayBet to see for yourself.
Using Craybet from my iPhone is actually smooth. No dedicated app — the mobile site runs well and all the games load without issues. Played Book of Dead on my commute and had zero problems.
Support at Craybet has been decent — they have live chat that gets you a person within a few minutes most times. Had to ask about a pending withdrawal and they sorted it pretty quickly. Licensing is operating under a Curacao license and that’s standard for offshore casinos. Not everything is amazing — promo codes seem rare — but for what it is I’m still using it.
Cheers, I enjoy this!