ee.Array.divide
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Chia giá trị đầu tiên cho giá trị thứ hai theo từng phần tử, trả về 0 khi chia cho 0.
Cách sử dụng | Giá trị trả về |
---|
Array.divide(right) | Mảng |
Đối số | Loại | Thông tin chi tiết |
---|
this: left | Mảng | Giá trị bên trái. |
right | Mảng | Giá trị bên phải. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eArray.divide\u003c/code\u003e performs element-wise division between two arrays.\u003c/p\u003e\n"],["\u003cp\u003eThe method handles division by zero gracefully by returning 0 in such cases.\u003c/p\u003e\n"],["\u003cp\u003eIt returns a new array containing the results of the division.\u003c/p\u003e\n"]]],["Divides elements of the `left` array by corresponding elements of the `right` array. If division by zero occurs, the result is zero. The operation is element-wise and returns a new array. The `left` and `right` arrays are the operands, with `left` being the dividend and `right` being the divisor in the division operation.\n"],null,["# ee.Array.divide\n\nOn an element-wise basis, divides the first value by the second, returning 0 for division by 0.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------|---------|\n| Array.divide`(right)` | Array |\n\n| Argument | Type | Details |\n|--------------|-------|-----------------------|\n| this: `left` | Array | The left-hand value. |\n| `right` | Array | The right-hand value. |"]]