Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道如何用 jQuery 求解以下线性方程。
12.5x = 20 + x + (20 + x)/10 (注意 12.5、20 和 10 是用户提供的数字)
jQuery中有没有办法获得x?非常感谢你
假设你的方程是格式:
ax = b + x + (c + x) / d;
因此解决方案是:
var x = (b * d + c) / (a * d - d - 1);
如果b === c是这样,解决方案是:
b === c
var x = (b * d + b) / (a * d - d - 1);