[{"a":4,"b":9,"rnd":1},{"a":3,"b":5,"rnd":1},"{\"js\":\"p.a=3;p.i=-5;p.e1=-4;\",\"order\":[1,0,3,2]}",{"a":-7,"b":10,"t":0,"o":0,"c":2,"gt":1},{"a":4,"b":-8,"x":-1,"h":0,"o":0},{"a":-10,"b":-3,"c":10,"d":-7,"m":-7},{"I":{"x":-1,"y":0},"R":4,"kc":0,"t":0},{"I1":{"x":-2,"y":3},"I2":{"x":3,"y":-3},"R1":4,"R2":5},{"t1":1,"t2":0,"id1":4,"id2":5},{"R1":8,"R2":7,"KC":14,"id1":1,"id2":3,"rnd":1}]
[[1],[1],"[\"0\"]","c<7","4","-7",[0],[1],[1],[1]]
Tìm điều kiện xác định của biểu thức: \(P=\dfrac{@p.i@}{\sqrt{@p.a@[email protected]@}}\)
- \(x>@p.ds@\)
- \(x\[email protected]@\)
- \(x< @p.ds1@\)
- \(x\[email protected]@\)
function dau(n){
if (n >=0) return " + " + n;
else return n;
};
function UCLN(x, y){
var d = x % y;
while (d != 0) {
x = y;
y = d;
d = x % y;
}
return y;
}
//viết phân số
function optimoz(a, b){
//Rút gọn
var ucln = UCLN(a, b);
a = a / ucln; b = b / ucln;
if(a * b > 0){
a = Math.abs(a); b = Math.abs(b);
}else{
a = -Math.abs(a); b = Math.abs(b);
}
if(a % b == 0) return (a / b);
else return "\\dfrac{"+a+"}{"+b+"}";
}
p.a = random(2,7);
p.i = random(-10,10);
if (p.i == 0) p.i++;
p.dau = [-1,1];
p.e1 = random(1,7)*p.dau[random(0,1)];
params({a: p.a,i: p.i, e1: p.e1});
p.e = dau(p.e1);
p.ds = optimoz(-p.e1,p.a);
p.ds1 = optimoz(p.e1,p.a);