From 3616b012aa8231b11521c6b08177229bc47f8102 Mon Sep 17 00:00:00 2001 From: snowykami Date: Thu, 29 Aug 2024 11:00:41 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20docs=20from=20@=20snowykami/mb?= =?UTF-8?q?cp@d984fca8eb5e53acd9411d05ff3eaed457f8ea36=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- api-ex.html | 2 +- api/index.html | 2 +- api/mp_math/angle.html | 2 +- api/mp_math/const.html | 2 +- api/mp_math/equation.html | 22 +++++++++---------- api/mp_math/index.html | 2 +- api/mp_math/line.html | 2 +- api/mp_math/mp_math_typing.html | 2 +- api/mp_math/plane.html | 2 +- api/mp_math/point.html | 2 +- api/mp_math/segment.html | 2 +- api/mp_math/utils.html | 2 +- api/mp_math/vector.html | 2 +- api/particle/index.html | 2 +- api/presets/index.html | 2 +- api/presets/model/index.html | 2 +- ...js => api_mp_math_equation.md.Bx8s1yFf.js} | 22 +++++++++---------- ... api_mp_math_equation.md.Bx8s1yFf.lean.js} | 2 +- ...=> en_api_mp_math_equation.md.BuG3Sd0K.js} | 20 ++++++++--------- ..._api_mp_math_equation.md.BuG3Sd0K.lean.js} | 2 +- ...n_api_mp_math_equation.md.CdqZIJEO.lean.js | 1 - ...=> ja_api_mp_math_equation.md.DvgEtgmw.js} | 22 +++++++++---------- ...a_api_mp_math_equation.md.DvgEtgmw.lean.js | 1 + ...> zht_api_mp_math_equation.md.CtFwMbbV.js} | 22 +++++++++---------- ..._api_mp_math_equation.md.CtFwMbbV.lean.js} | 2 +- en/api/index.html | 2 +- en/api/mp_math/angle.html | 2 +- en/api/mp_math/const.html | 2 +- en/api/mp_math/equation.html | 22 +++++++++---------- en/api/mp_math/index.html | 2 +- en/api/mp_math/line.html | 2 +- en/api/mp_math/mp_math_typing.html | 2 +- en/api/mp_math/plane.html | 2 +- en/api/mp_math/point.html | 2 +- en/api/mp_math/segment.html | 2 +- en/api/mp_math/utils.html | 2 +- en/api/mp_math/vector.html | 2 +- en/api/particle/index.html | 2 +- en/api/presets/index.html | 2 +- en/api/presets/model/index.html | 2 +- guide/index.html | 2 +- hashmap.json | 2 +- index.html | 2 +- ja/api/index.html | 2 +- ja/api/mp_math/angle.html | 2 +- ja/api/mp_math/const.html | 2 +- ja/api/mp_math/equation.html | 22 +++++++++---------- ja/api/mp_math/index.html | 2 +- ja/api/mp_math/line.html | 2 +- ja/api/mp_math/mp_math_typing.html | 2 +- ja/api/mp_math/plane.html | 2 +- ja/api/mp_math/point.html | 2 +- ja/api/mp_math/segment.html | 2 +- ja/api/mp_math/utils.html | 2 +- ja/api/mp_math/vector.html | 2 +- ja/api/particle/index.html | 2 +- ja/api/presets/index.html | 2 +- ja/api/presets/model/index.html | 2 +- md-ex.html | 2 +- zht/api/index.html | 2 +- zht/api/mp_math/angle.html | 2 +- zht/api/mp_math/const.html | 2 +- zht/api/mp_math/equation.html | 22 +++++++++---------- zht/api/mp_math/index.html | 2 +- zht/api/mp_math/line.html | 2 +- zht/api/mp_math/mp_math_typing.html | 2 +- zht/api/mp_math/plane.html | 2 +- zht/api/mp_math/point.html | 2 +- zht/api/mp_math/segment.html | 2 +- zht/api/mp_math/utils.html | 2 +- zht/api/mp_math/vector.html | 2 +- zht/api/particle/index.html | 2 +- zht/api/presets/index.html | 2 +- zht/api/presets/model/index.html | 2 +- 75 files changed, 153 insertions(+), 153 deletions(-) rename assets/{api_mp_math_equation.md.D6QhNvHe.js => api_mp_math_equation.md.Bx8s1yFf.js} (97%) rename assets/{api_mp_math_equation.md.D6QhNvHe.lean.js => api_mp_math_equation.md.Bx8s1yFf.lean.js} (71%) rename assets/{en_api_mp_math_equation.md.CdqZIJEO.js => en_api_mp_math_equation.md.BuG3Sd0K.js} (97%) rename assets/{ja_api_mp_math_equation.md.B2lD-VSI.lean.js => en_api_mp_math_equation.md.BuG3Sd0K.lean.js} (72%) delete mode 100644 assets/en_api_mp_math_equation.md.CdqZIJEO.lean.js rename assets/{ja_api_mp_math_equation.md.B2lD-VSI.js => ja_api_mp_math_equation.md.DvgEtgmw.js} (97%) create mode 100644 assets/ja_api_mp_math_equation.md.DvgEtgmw.lean.js rename assets/{zht_api_mp_math_equation.md.H6Y480q1.js => zht_api_mp_math_equation.md.CtFwMbbV.js} (97%) rename assets/{zht_api_mp_math_equation.md.H6Y480q1.lean.js => zht_api_mp_math_equation.md.CtFwMbbV.lean.js} (68%) diff --git a/404.html b/404.html index 5a069bf..61c5b47 100644 --- a/404.html +++ b/404.html @@ -15,7 +15,7 @@
- + \ No newline at end of file diff --git a/api-ex.html b/api-ex.html index 6bce728..7fbca92 100644 --- a/api-ex.html +++ b/api-ex.html @@ -453,7 +453,7 @@ }

Page Frontmatter

{
   "outline": "deep"
 }

More

Check out the documentation for the full list of runtime APIs.

- + \ No newline at end of file diff --git a/api/index.html b/api/index.html index 07b4f1e..0172a60 100644 --- a/api/index.html +++ b/api/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/api/mp_math/angle.html b/api/mp_math/angle.html index 7b7e0ae..b64c09f 100644 --- a/api/mp_math/angle.html +++ b/api/mp_math/angle.html @@ -116,7 +116,7 @@ if isinstance(other, AnyAngle): return self.radian / other.radian return AnyAngle(self.radian / other, is_radian=True) - + \ No newline at end of file diff --git a/api/mp_math/const.html b/api/mp_math/const.html index 3f30277..982a8d2 100644 --- a/api/mp_math/const.html +++ b/api/mp_math/const.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/api/mp_math/equation.html b/api/mp_math/equation.html index 77111b9..8e3ca18 100644 --- a/api/mp_math/equation.html +++ b/api/mp_math/equation.html @@ -12,7 +12,7 @@ - + @@ -35,14 +35,7 @@ if isinstance(var, int): def partial_derivative_func(*args: Var) -> Var: - """ - @litedoc-hide - Args: - *args: - - Returns: - - """ + """@litedoc-hide""" args_list_plus = list(args) args_list_plus[var] += epsilon args_list_minus = list(args) @@ -52,7 +45,14 @@ elif isinstance(var, tuple): def high_order_partial_derivative_func(*args: Var) -> Var: - """@litedoc-hide""" + """ + @litedoc-hide + 求高阶偏导函数 + Args: + *args: 参数 + Returns: + 高阶偏导数值 + """ result_func = func for v in var: result_func = get_partial_derivative_func(result_func, v, epsilon) @@ -97,7 +97,7 @@ return Point3(self.x_func(t[0]), self.y_func(t[0]), self.z_func(t[0])) else: return tuple([Point3(x, y, z) for x, y, z in zip(self.x_func(t), self.y_func(t), self.z_func(t))]) - + \ No newline at end of file diff --git a/api/mp_math/index.html b/api/mp_math/index.html index 986ae15..f51bdcd 100644 --- a/api/mp_math/index.html +++ b/api/mp_math/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/api/mp_math/line.html b/api/mp_math/line.html index edba496..510ea65 100644 --- a/api/mp_math/line.html +++ b/api/mp_math/line.html @@ -195,7 +195,7 @@ """ return self.direction.is_parallel(other.direction) and (self.point - other.point).is_parallel(self.direction) - + \ No newline at end of file diff --git a/api/mp_math/mp_math_typing.html b/api/mp_math/mp_math_typing.html index 8d8df4d..dd56561 100644 --- a/api/mp_math/mp_math_typing.html +++ b/api/mp_math/mp_math_typing.html @@ -18,7 +18,7 @@
Skip to content

var RealNumber = int | float

  • 类型: TypeAlias

  • 说明: 实数

var Number = RealNumber | complex

  • 类型: TypeAlias

  • 说明: 数

var SingleVar = TypeVar('SingleVar', bound=Number)

  • 说明: 单变量

var ArrayVar = TypeVar('ArrayVar', bound=Iterable[Number])

  • 说明: 数组变量

var Var = SingleVar | ArrayVar

  • 类型: TypeAlias

  • 说明: 变量

var OneSingleVarFunc = Callable[[SingleVar], SingleVar]

  • 类型: TypeAlias

  • 说明: 一元单变量函数

var OneArrayFunc = Callable[[ArrayVar], ArrayVar]

  • 类型: TypeAlias

  • 说明: 一元数组函数

var OneVarFunc = OneSingleVarFunc | OneArrayFunc

  • 类型: TypeAlias

  • 说明: 一元函数

var TwoSingleVarsFunc = Callable[[SingleVar, SingleVar], SingleVar]

  • 类型: TypeAlias

  • 说明: 二元单变量函数

var TwoArraysFunc = Callable[[ArrayVar, ArrayVar], ArrayVar]

  • 类型: TypeAlias

  • 说明: 二元数组函数

var TwoVarsFunc = TwoSingleVarsFunc | TwoArraysFunc

  • 类型: TypeAlias

  • 说明: 二元函数

var ThreeSingleVarsFunc = Callable[[SingleVar, SingleVar, SingleVar], SingleVar]

  • 类型: TypeAlias

  • 说明: 三元单变量函数

var ThreeArraysFunc = Callable[[ArrayVar, ArrayVar, ArrayVar], ArrayVar]

  • 类型: TypeAlias

  • 说明: 三元数组函数

var ThreeVarsFunc = ThreeSingleVarsFunc | ThreeArraysFunc

  • 类型: TypeAlias

  • 说明: 三元函数

var MultiSingleVarsFunc = Callable[..., SingleVar]

  • 类型: TypeAlias

  • 说明: 多元单变量函数

var MultiArraysFunc = Callable[..., ArrayVar]

  • 类型: TypeAlias

  • 说明: 多元数组函数

var MultiVarsFunc = MultiSingleVarsFunc | MultiArraysFunc

  • 类型: TypeAlias

  • 说明: 多元函数

- + \ No newline at end of file diff --git a/api/mp_math/plane.html b/api/mp_math/plane.html index 03ec60a..bebe790 100644 --- a/api/mp_math/plane.html +++ b/api/mp_math/plane.html @@ -213,7 +213,7 @@ raise TypeError(f"unsupported operand type(s) for &: 'Plane3' and '{type(other)}'")

method __eq__(self, other) -> bool

源代码
python
def __eq__(self, other) -> bool:
     return self.approx(other)

method __rand__(self, other: Line3) -> Point3

源代码
python
def __rand__(self, other: 'Line3') -> 'Point3':
     return self.cal_intersection_point3(other)
- + \ No newline at end of file diff --git a/api/mp_math/point.html b/api/mp_math/point.html index e3670f1..5fc06b0 100644 --- a/api/mp_math/point.html +++ b/api/mp_math/point.html @@ -68,7 +68,7 @@ """ from .vector import Vector3 return Vector3(self.x - other.x, self.y - other.y, self.z - other.z) - + \ No newline at end of file diff --git a/api/mp_math/segment.html b/api/mp_math/segment.html index 48e9ff6..f430296 100644 --- a/api/mp_math/segment.html +++ b/api/mp_math/segment.html @@ -31,7 +31,7 @@ self.length = self.direction.length '中心点' self.midpoint = Point3((self.p1.x + self.p2.x) / 2, (self.p1.y + self.p2.y) / 2, (self.p1.z + self.p2.z) / 2) - + \ No newline at end of file diff --git a/api/mp_math/utils.html b/api/mp_math/utils.html index b07fc43..152abf6 100644 --- a/api/mp_math/utils.html +++ b/api/mp_math/utils.html @@ -81,7 +81,7 @@ self.raise_type_error(other)

method raise_type_error(self, other)

源代码
python
def raise_type_error(self, other):
     raise TypeError(f'Unsupported type: {type(self.value)} and {type(other)}')

method __ne__(self, other)

源代码
python
def __ne__(self, other):
     return not self.__eq__(other)
- + \ No newline at end of file diff --git a/api/mp_math/vector.html b/api/mp_math/vector.html index 8733e9a..260a981 100644 --- a/api/mp_math/vector.html +++ b/api/mp_math/vector.html @@ -204,7 +204,7 @@ return self.x * other.x + self.y * other.y + self.z * other.z

method self / other: RealNumber => Vector3

源代码
python
def __truediv__(self, other: RealNumber) -> 'Vector3':
     return Vector3(self.x / other, self.y / other, self.z / other)

method - self

源代码
python
def __neg__(self):
     return Vector3(-self.x, -self.y, -self.z)

var zero_vector3 = Vector3(0, 0, 0)

var x_axis = Vector3(1, 0, 0)

var y_axis = Vector3(0, 1, 0)

var z_axis = Vector3(0, 0, 1)

- + \ No newline at end of file diff --git a/api/particle/index.html b/api/particle/index.html index 8e4fcf1..a22209d 100644 --- a/api/particle/index.html +++ b/api/particle/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/api/presets/index.html b/api/presets/index.html index e39227f..9e4ec7f 100644 --- a/api/presets/index.html +++ b/api/presets/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/api/presets/model/index.html b/api/presets/model/index.html index ad8d780..4c9023b 100644 --- a/api/presets/model/index.html +++ b/api/presets/model/index.html @@ -35,7 +35,7 @@ y_array = radius * np.sin(phi_list) * np.sin(theta_list) z_array = radius * np.cos(phi_list) return [Point3(x_array[i], y_array[i], z_array[i]) for i in range(num)] - + \ No newline at end of file diff --git a/assets/api_mp_math_equation.md.D6QhNvHe.js b/assets/api_mp_math_equation.md.Bx8s1yFf.js similarity index 97% rename from assets/api_mp_math_equation.md.D6QhNvHe.js rename to assets/api_mp_math_equation.md.Bx8s1yFf.js index 0f71f02..a74b0fa 100644 --- a/assets/api_mp_math_equation.md.D6QhNvHe.js +++ b/assets/api_mp_math_equation.md.Bx8s1yFf.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"api/mp_math/equation.md","filePath":"api/mp_math/equation.md"}'),l={name:"api/mp_math/equation.md"},t=n(`

func get_partial_derivative_func(func: MultiVarsFunc = EPSILON) -> MultiVarsFunc

说明: 求N元函数一阶偏导函数。这玩意不太稳定,慎用。

WARNING

目前数学界对于一个函数的导函数并没有通解的说法,因此该函数的稳定性有待提升

参数:

返回: 偏导函数

引发:

源代码
python
def get_partial_derivative_func(func: MultiVarsFunc, var: int | tuple[int, ...], epsilon: Number=EPSILON) -> MultiVarsFunc:
+import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const F=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"api/mp_math/equation.md","filePath":"api/mp_math/equation.md"}'),l={name:"api/mp_math/equation.md"},t=n(`

func get_partial_derivative_func(func: MultiVarsFunc = EPSILON) -> MultiVarsFunc

说明: 求N元函数一阶偏导函数。这玩意不太稳定,慎用。

WARNING

目前数学界对于一个函数的导函数并没有通解的说法,因此该函数的稳定性有待提升

参数:

  • func: 函数
  • var: 变量位置,可为整数(一阶偏导)或整数元组(高阶偏导)
  • epsilon: 偏移量

返回: 偏导函数

引发:

  • ValueError 无效变量类型
源代码
python
def get_partial_derivative_func(func: MultiVarsFunc, var: int | tuple[int, ...], epsilon: Number=EPSILON) -> MultiVarsFunc:
     """
     求N元函数一阶偏导函数。这玩意不太稳定,慎用。
     > [!warning]
@@ -16,14 +16,7 @@ import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u
     if isinstance(var, int):
 
         def partial_derivative_func(*args: Var) -> Var:
-            """
-            @litedoc-hide
-            Args:
-                *args:
-
-            Returns:
-
-            """
+            """@litedoc-hide"""
             args_list_plus = list(args)
             args_list_plus[var] += epsilon
             args_list_minus = list(args)
@@ -33,7 +26,14 @@ import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u
     elif isinstance(var, tuple):
 
         def high_order_partial_derivative_func(*args: Var) -> Var:
-            """@litedoc-hide"""
+            """
+            @litedoc-hide
+            求高阶偏导函数
+            Args:
+                *args: 参数
+            Returns:
+                高阶偏导数值
+            """
             result_func = func
             for v in var:
                 result_func = get_partial_derivative_func(result_func, v, epsilon)
@@ -77,4 +77,4 @@ import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u
     if len(t) == 1:
         return Point3(self.x_func(t[0]), self.y_func(t[0]), self.z_func(t[0]))
     else:
-        return tuple([Point3(x, y, z) for x, y, z in zip(self.x_func(t), self.y_func(t), self.z_func(t))])
`,27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const F=s(l,[["render",p]]);export{u as __pageData,F as default}; + return tuple([Point3(x, y, z) for x, y, z in zip(self.x_func(t), self.y_func(t), self.z_func(t))])
`,27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const u=s(l,[["render",p]]);export{F as __pageData,u as default}; diff --git a/assets/api_mp_math_equation.md.D6QhNvHe.lean.js b/assets/api_mp_math_equation.md.Bx8s1yFf.lean.js similarity index 71% rename from assets/api_mp_math_equation.md.D6QhNvHe.lean.js rename to assets/api_mp_math_equation.md.Bx8s1yFf.lean.js index 4c1801f..3647865 100644 --- a/assets/api_mp_math_equation.md.D6QhNvHe.lean.js +++ b/assets/api_mp_math_equation.md.Bx8s1yFf.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"api/mp_math/equation.md","filePath":"api/mp_math/equation.md"}'),l={name:"api/mp_math/equation.md"},t=n("",27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const F=s(l,[["render",p]]);export{u as __pageData,F as default}; +import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const F=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"api/mp_math/equation.md","filePath":"api/mp_math/equation.md"}'),l={name:"api/mp_math/equation.md"},t=n("",27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const u=s(l,[["render",p]]);export{F as __pageData,u as default}; diff --git a/assets/en_api_mp_math_equation.md.CdqZIJEO.js b/assets/en_api_mp_math_equation.md.BuG3Sd0K.js similarity index 97% rename from assets/en_api_mp_math_equation.md.CdqZIJEO.js rename to assets/en_api_mp_math_equation.md.BuG3Sd0K.js index 14f4347..8765aed 100644 --- a/assets/en_api_mp_math_equation.md.CdqZIJEO.js +++ b/assets/en_api_mp_math_equation.md.BuG3Sd0K.js @@ -16,14 +16,7 @@ import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u if isinstance(var, int): def partial_derivative_func(*args: Var) -> Var: - """ - @litedoc-hide - Args: - *args: - - Returns: - - """ + """@litedoc-hide""" args_list_plus = list(args) args_list_plus[var] += epsilon args_list_minus = list(args) @@ -33,7 +26,14 @@ import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u elif isinstance(var, tuple): def high_order_partial_derivative_func(*args: Var) -> Var: - """@litedoc-hide""" + """ + @litedoc-hide + 求高阶偏导函数 + Args: + *args: 参数 + Returns: + 高阶偏导数值 + """ result_func = func for v in var: result_func = get_partial_derivative_func(result_func, v, epsilon) @@ -77,4 +77,4 @@ import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u if len(t) == 1: return Point3(self.x_func(t[0]), self.y_func(t[0]), self.z_func(t[0])) else: - return tuple([Point3(x, y, z) for x, y, z in zip(self.x_func(t), self.y_func(t), self.z_func(t))])`,27),p=[t];function h(k,e,r,E,d,g){return a(),i("div",null,p)}const F=s(l,[["render",h]]);export{u as __pageData,F as default}; + return tuple([Point3(x, y, z) for x, y, z in zip(self.x_func(t), self.y_func(t), self.z_func(t))])`,27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const F=s(l,[["render",p]]);export{u as __pageData,F as default}; diff --git a/assets/ja_api_mp_math_equation.md.B2lD-VSI.lean.js b/assets/en_api_mp_math_equation.md.BuG3Sd0K.lean.js similarity index 72% rename from assets/ja_api_mp_math_equation.md.B2lD-VSI.lean.js rename to assets/en_api_mp_math_equation.md.BuG3Sd0K.lean.js index 4d288f6..6d1c39b 100644 --- a/assets/ja_api_mp_math_equation.md.B2lD-VSI.lean.js +++ b/assets/en_api_mp_math_equation.md.BuG3Sd0K.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"ja/api/mp_math/equation.md","filePath":"ja/api/mp_math/equation.md"}'),l={name:"ja/api/mp_math/equation.md"},t=n("",27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const F=s(l,[["render",p]]);export{u as __pageData,F as default}; +import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"en/api/mp_math/equation.md","filePath":"en/api/mp_math/equation.md"}'),l={name:"en/api/mp_math/equation.md"},t=n("",27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const F=s(l,[["render",p]]);export{u as __pageData,F as default}; diff --git a/assets/en_api_mp_math_equation.md.CdqZIJEO.lean.js b/assets/en_api_mp_math_equation.md.CdqZIJEO.lean.js deleted file mode 100644 index b032078..0000000 --- a/assets/en_api_mp_math_equation.md.CdqZIJEO.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"en/api/mp_math/equation.md","filePath":"en/api/mp_math/equation.md"}'),l={name:"en/api/mp_math/equation.md"},t=n("",27),p=[t];function h(k,e,r,E,d,g){return a(),i("div",null,p)}const F=s(l,[["render",h]]);export{u as __pageData,F as default}; diff --git a/assets/ja_api_mp_math_equation.md.B2lD-VSI.js b/assets/ja_api_mp_math_equation.md.DvgEtgmw.js similarity index 97% rename from assets/ja_api_mp_math_equation.md.B2lD-VSI.js rename to assets/ja_api_mp_math_equation.md.DvgEtgmw.js index 243622f..1c794a2 100644 --- a/assets/ja_api_mp_math_equation.md.B2lD-VSI.js +++ b/assets/ja_api_mp_math_equation.md.DvgEtgmw.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"ja/api/mp_math/equation.md","filePath":"ja/api/mp_math/equation.md"}'),l={name:"ja/api/mp_math/equation.md"},t=n(`

func get_partial_derivative_func(func: MultiVarsFunc = EPSILON) -> MultiVarsFunc

説明: 求N元函数一阶偏导函数。这玩意不太稳定,慎用。

WARNING

目前数学界对于一个函数的导函数并没有通解的说法,因此该函数的稳定性有待提升

引数:

戻り値: 偏导函数

例外:

ソースコード
python
def get_partial_derivative_func(func: MultiVarsFunc, var: int | tuple[int, ...], epsilon: Number=EPSILON) -> MultiVarsFunc:
+import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const F=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"ja/api/mp_math/equation.md","filePath":"ja/api/mp_math/equation.md"}'),l={name:"ja/api/mp_math/equation.md"},t=n(`

func get_partial_derivative_func(func: MultiVarsFunc = EPSILON) -> MultiVarsFunc

説明: 求N元函数一阶偏导函数。这玩意不太稳定,慎用。

WARNING

目前数学界对于一个函数的导函数并没有通解的说法,因此该函数的稳定性有待提升

引数:

  • func: 函数
  • var: 变量位置,可为整数(一阶偏导)或整数元组(高阶偏导)
  • epsilon: 偏移量

戻り値: 偏导函数

例外:

  • ValueError 无效变量类型
ソースコード
python
def get_partial_derivative_func(func: MultiVarsFunc, var: int | tuple[int, ...], epsilon: Number=EPSILON) -> MultiVarsFunc:
     """
     求N元函数一阶偏导函数。这玩意不太稳定,慎用。
     > [!warning]
@@ -16,14 +16,7 @@ import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u
     if isinstance(var, int):
 
         def partial_derivative_func(*args: Var) -> Var:
-            """
-            @litedoc-hide
-            Args:
-                *args:
-
-            Returns:
-
-            """
+            """@litedoc-hide"""
             args_list_plus = list(args)
             args_list_plus[var] += epsilon
             args_list_minus = list(args)
@@ -33,7 +26,14 @@ import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u
     elif isinstance(var, tuple):
 
         def high_order_partial_derivative_func(*args: Var) -> Var:
-            """@litedoc-hide"""
+            """
+            @litedoc-hide
+            求高阶偏导函数
+            Args:
+                *args: 参数
+            Returns:
+                高阶偏导数值
+            """
             result_func = func
             for v in var:
                 result_func = get_partial_derivative_func(result_func, v, epsilon)
@@ -77,4 +77,4 @@ import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u
     if len(t) == 1:
         return Point3(self.x_func(t[0]), self.y_func(t[0]), self.z_func(t[0]))
     else:
-        return tuple([Point3(x, y, z) for x, y, z in zip(self.x_func(t), self.y_func(t), self.z_func(t))])
`,27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const F=s(l,[["render",p]]);export{u as __pageData,F as default}; + return tuple([Point3(x, y, z) for x, y, z in zip(self.x_func(t), self.y_func(t), self.z_func(t))])
`,27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const u=s(l,[["render",p]]);export{F as __pageData,u as default}; diff --git a/assets/ja_api_mp_math_equation.md.DvgEtgmw.lean.js b/assets/ja_api_mp_math_equation.md.DvgEtgmw.lean.js new file mode 100644 index 0000000..b4603c7 --- /dev/null +++ b/assets/ja_api_mp_math_equation.md.DvgEtgmw.lean.js @@ -0,0 +1 @@ +import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const F=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"ja/api/mp_math/equation.md","filePath":"ja/api/mp_math/equation.md"}'),l={name:"ja/api/mp_math/equation.md"},t=n("",27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const u=s(l,[["render",p]]);export{F as __pageData,u as default}; diff --git a/assets/zht_api_mp_math_equation.md.H6Y480q1.js b/assets/zht_api_mp_math_equation.md.CtFwMbbV.js similarity index 97% rename from assets/zht_api_mp_math_equation.md.H6Y480q1.js rename to assets/zht_api_mp_math_equation.md.CtFwMbbV.js index 65257a2..968d760 100644 --- a/assets/zht_api_mp_math_equation.md.H6Y480q1.js +++ b/assets/zht_api_mp_math_equation.md.CtFwMbbV.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"zht/api/mp_math/equation.md","filePath":"zht/api/mp_math/equation.md"}'),l={name:"zht/api/mp_math/equation.md"},t=n(`

func get_partial_derivative_func(func: MultiVarsFunc = EPSILON) -> MultiVarsFunc

説明: 求N元函数一阶偏导函数。这玩意不太稳定,慎用。

WARNING

目前数学界对于一个函数的导函数并没有通解的说法,因此该函数的稳定性有待提升

變數説明:

返回: 偏导函数

抛出:

源碼
python
def get_partial_derivative_func(func: MultiVarsFunc, var: int | tuple[int, ...], epsilon: Number=EPSILON) -> MultiVarsFunc:
+import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const F=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"zht/api/mp_math/equation.md","filePath":"zht/api/mp_math/equation.md"}'),l={name:"zht/api/mp_math/equation.md"},t=n(`

func get_partial_derivative_func(func: MultiVarsFunc = EPSILON) -> MultiVarsFunc

説明: 求N元函数一阶偏导函数。这玩意不太稳定,慎用。

WARNING

目前数学界对于一个函数的导函数并没有通解的说法,因此该函数的稳定性有待提升

變數説明:

  • func: 函数
  • var: 变量位置,可为整数(一阶偏导)或整数元组(高阶偏导)
  • epsilon: 偏移量

返回: 偏导函数

抛出:

  • ValueError 无效变量类型
源碼
python
def get_partial_derivative_func(func: MultiVarsFunc, var: int | tuple[int, ...], epsilon: Number=EPSILON) -> MultiVarsFunc:
     """
     求N元函数一阶偏导函数。这玩意不太稳定,慎用。
     > [!warning]
@@ -16,14 +16,7 @@ import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u
     if isinstance(var, int):
 
         def partial_derivative_func(*args: Var) -> Var:
-            """
-            @litedoc-hide
-            Args:
-                *args:
-
-            Returns:
-
-            """
+            """@litedoc-hide"""
             args_list_plus = list(args)
             args_list_plus[var] += epsilon
             args_list_minus = list(args)
@@ -33,7 +26,14 @@ import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u
     elif isinstance(var, tuple):
 
         def high_order_partial_derivative_func(*args: Var) -> Var:
-            """@litedoc-hide"""
+            """
+            @litedoc-hide
+            求高阶偏导函数
+            Args:
+                *args: 参数
+            Returns:
+                高阶偏导数值
+            """
             result_func = func
             for v in var:
                 result_func = get_partial_derivative_func(result_func, v, epsilon)
@@ -77,4 +77,4 @@ import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u
     if len(t) == 1:
         return Point3(self.x_func(t[0]), self.y_func(t[0]), self.z_func(t[0]))
     else:
-        return tuple([Point3(x, y, z) for x, y, z in zip(self.x_func(t), self.y_func(t), self.z_func(t))])
`,27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const F=s(l,[["render",p]]);export{u as __pageData,F as default}; + return tuple([Point3(x, y, z) for x, y, z in zip(self.x_func(t), self.y_func(t), self.z_func(t))])
`,27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const u=s(l,[["render",p]]);export{F as __pageData,u as default}; diff --git a/assets/zht_api_mp_math_equation.md.H6Y480q1.lean.js b/assets/zht_api_mp_math_equation.md.CtFwMbbV.lean.js similarity index 68% rename from assets/zht_api_mp_math_equation.md.H6Y480q1.lean.js rename to assets/zht_api_mp_math_equation.md.CtFwMbbV.lean.js index 485bad1..93235b8 100644 --- a/assets/zht_api_mp_math_equation.md.H6Y480q1.lean.js +++ b/assets/zht_api_mp_math_equation.md.CtFwMbbV.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const u=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"zht/api/mp_math/equation.md","filePath":"zht/api/mp_math/equation.md"}'),l={name:"zht/api/mp_math/equation.md"},t=n("",27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const F=s(l,[["render",p]]);export{u as __pageData,F as default}; +import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.BV61Qrc0.js";const F=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation"},"headers":[],"relativePath":"zht/api/mp_math/equation.md","filePath":"zht/api/mp_math/equation.md"}'),l={name:"zht/api/mp_math/equation.md"},t=n("",27),h=[t];function p(k,e,r,E,d,g){return a(),i("div",null,h)}const u=s(l,[["render",p]]);export{F as __pageData,u as default}; diff --git a/en/api/index.html b/en/api/index.html index 9203960..d6c3f56 100644 --- a/en/api/index.html +++ b/en/api/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/en/api/mp_math/angle.html b/en/api/mp_math/angle.html index de106f8..d71eca0 100644 --- a/en/api/mp_math/angle.html +++ b/en/api/mp_math/angle.html @@ -116,7 +116,7 @@ if isinstance(other, AnyAngle): return self.radian / other.radian return AnyAngle(self.radian / other, is_radian=True) - + \ No newline at end of file diff --git a/en/api/mp_math/const.html b/en/api/mp_math/const.html index 4b51c5e..8764923 100644 --- a/en/api/mp_math/const.html +++ b/en/api/mp_math/const.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/en/api/mp_math/equation.html b/en/api/mp_math/equation.html index 2709653..42e5cc5 100644 --- a/en/api/mp_math/equation.html +++ b/en/api/mp_math/equation.html @@ -12,7 +12,7 @@ - + @@ -35,14 +35,7 @@ if isinstance(var, int): def partial_derivative_func(*args: Var) -> Var: - """ - @litedoc-hide - Args: - *args: - - Returns: - - """ + """@litedoc-hide""" args_list_plus = list(args) args_list_plus[var] += epsilon args_list_minus = list(args) @@ -52,7 +45,14 @@ elif isinstance(var, tuple): def high_order_partial_derivative_func(*args: Var) -> Var: - """@litedoc-hide""" + """ + @litedoc-hide + 求高阶偏导函数 + Args: + *args: 参数 + Returns: + 高阶偏导数值 + """ result_func = func for v in var: result_func = get_partial_derivative_func(result_func, v, epsilon) @@ -97,7 +97,7 @@ return Point3(self.x_func(t[0]), self.y_func(t[0]), self.z_func(t[0])) else: return tuple([Point3(x, y, z) for x, y, z in zip(self.x_func(t), self.y_func(t), self.z_func(t))]) - + \ No newline at end of file diff --git a/en/api/mp_math/index.html b/en/api/mp_math/index.html index a9f2696..d2bc901 100644 --- a/en/api/mp_math/index.html +++ b/en/api/mp_math/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/en/api/mp_math/line.html b/en/api/mp_math/line.html index c621dd1..8abe146 100644 --- a/en/api/mp_math/line.html +++ b/en/api/mp_math/line.html @@ -195,7 +195,7 @@ """ return self.direction.is_parallel(other.direction) and (self.point - other.point).is_parallel(self.direction) - + \ No newline at end of file diff --git a/en/api/mp_math/mp_math_typing.html b/en/api/mp_math/mp_math_typing.html index d264080..60a31bb 100644 --- a/en/api/mp_math/mp_math_typing.html +++ b/en/api/mp_math/mp_math_typing.html @@ -18,7 +18,7 @@
Skip to content

var RealNumber = int | float

  • Type: TypeAlias

  • Description: 实数

var Number = RealNumber | complex

  • Type: TypeAlias

  • Description: 数

var SingleVar = TypeVar('SingleVar', bound=Number)

  • Description: 单变量

var ArrayVar = TypeVar('ArrayVar', bound=Iterable[Number])

  • Description: 数组变量

var Var = SingleVar | ArrayVar

  • Type: TypeAlias

  • Description: 变量

var OneSingleVarFunc = Callable[[SingleVar], SingleVar]

  • Type: TypeAlias

  • Description: 一元单变量函数

var OneArrayFunc = Callable[[ArrayVar], ArrayVar]

  • Type: TypeAlias

  • Description: 一元数组函数

var OneVarFunc = OneSingleVarFunc | OneArrayFunc

  • Type: TypeAlias

  • Description: 一元函数

var TwoSingleVarsFunc = Callable[[SingleVar, SingleVar], SingleVar]

  • Type: TypeAlias

  • Description: 二元单变量函数

var TwoArraysFunc = Callable[[ArrayVar, ArrayVar], ArrayVar]

  • Type: TypeAlias

  • Description: 二元数组函数

var TwoVarsFunc = TwoSingleVarsFunc | TwoArraysFunc

  • Type: TypeAlias

  • Description: 二元函数

var ThreeSingleVarsFunc = Callable[[SingleVar, SingleVar, SingleVar], SingleVar]

  • Type: TypeAlias

  • Description: 三元单变量函数

var ThreeArraysFunc = Callable[[ArrayVar, ArrayVar, ArrayVar], ArrayVar]

  • Type: TypeAlias

  • Description: 三元数组函数

var ThreeVarsFunc = ThreeSingleVarsFunc | ThreeArraysFunc

  • Type: TypeAlias

  • Description: 三元函数

var MultiSingleVarsFunc = Callable[..., SingleVar]

  • Type: TypeAlias

  • Description: 多元单变量函数

var MultiArraysFunc = Callable[..., ArrayVar]

  • Type: TypeAlias

  • Description: 多元数组函数

var MultiVarsFunc = MultiSingleVarsFunc | MultiArraysFunc

  • Type: TypeAlias

  • Description: 多元函数

- + \ No newline at end of file diff --git a/en/api/mp_math/plane.html b/en/api/mp_math/plane.html index 9560d70..09539fe 100644 --- a/en/api/mp_math/plane.html +++ b/en/api/mp_math/plane.html @@ -213,7 +213,7 @@ raise TypeError(f"unsupported operand type(s) for &: 'Plane3' and '{type(other)}'")

method __eq__(self, other) -> bool

Source code
python
def __eq__(self, other) -> bool:
     return self.approx(other)

method __rand__(self, other: Line3) -> Point3

Source code
python
def __rand__(self, other: 'Line3') -> 'Point3':
     return self.cal_intersection_point3(other)
- + \ No newline at end of file diff --git a/en/api/mp_math/point.html b/en/api/mp_math/point.html index 38ca673..de3aa24 100644 --- a/en/api/mp_math/point.html +++ b/en/api/mp_math/point.html @@ -68,7 +68,7 @@ """ from .vector import Vector3 return Vector3(self.x - other.x, self.y - other.y, self.z - other.z) - + \ No newline at end of file diff --git a/en/api/mp_math/segment.html b/en/api/mp_math/segment.html index 0e0360c..b1c4c0c 100644 --- a/en/api/mp_math/segment.html +++ b/en/api/mp_math/segment.html @@ -31,7 +31,7 @@ self.length = self.direction.length '中心点' self.midpoint = Point3((self.p1.x + self.p2.x) / 2, (self.p1.y + self.p2.y) / 2, (self.p1.z + self.p2.z) / 2) - + \ No newline at end of file diff --git a/en/api/mp_math/utils.html b/en/api/mp_math/utils.html index 7df04a3..6a4ea0b 100644 --- a/en/api/mp_math/utils.html +++ b/en/api/mp_math/utils.html @@ -81,7 +81,7 @@ self.raise_type_error(other)

method raise_type_error(self, other)

Source code
python
def raise_type_error(self, other):
     raise TypeError(f'Unsupported type: {type(self.value)} and {type(other)}')

method __ne__(self, other)

Source code
python
def __ne__(self, other):
     return not self.__eq__(other)
- + \ No newline at end of file diff --git a/en/api/mp_math/vector.html b/en/api/mp_math/vector.html index 9601e75..16b7613 100644 --- a/en/api/mp_math/vector.html +++ b/en/api/mp_math/vector.html @@ -204,7 +204,7 @@ return self.x * other.x + self.y * other.y + self.z * other.z

method self / other: RealNumber => Vector3

Source code
python
def __truediv__(self, other: RealNumber) -> 'Vector3':
     return Vector3(self.x / other, self.y / other, self.z / other)

method - self

Source code
python
def __neg__(self):
     return Vector3(-self.x, -self.y, -self.z)

var zero_vector3 = Vector3(0, 0, 0)

var x_axis = Vector3(1, 0, 0)

var y_axis = Vector3(0, 1, 0)

var z_axis = Vector3(0, 0, 1)

- + \ No newline at end of file diff --git a/en/api/particle/index.html b/en/api/particle/index.html index 6e4b5a3..aa5d51a 100644 --- a/en/api/particle/index.html +++ b/en/api/particle/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/en/api/presets/index.html b/en/api/presets/index.html index 56edf4a..269f70b 100644 --- a/en/api/presets/index.html +++ b/en/api/presets/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/en/api/presets/model/index.html b/en/api/presets/model/index.html index e70b849..f55b421 100644 --- a/en/api/presets/model/index.html +++ b/en/api/presets/model/index.html @@ -35,7 +35,7 @@ y_array = radius * np.sin(phi_list) * np.sin(theta_list) z_array = radius * np.cos(phi_list) return [Point3(x_array[i], y_array[i], z_array[i]) for i in range(num)] - + \ No newline at end of file diff --git a/guide/index.html b/guide/index.html index 5b5b183..dc41f68 100644 --- a/guide/index.html +++ b/guide/index.html @@ -18,7 +18,7 @@
Skip to content

开始不了一点

- + \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index 59bea36..3891dcd 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"api-ex.md":"DOsKaL8H","api_index.md":"BvazTqTB","api_mp_math_angle.md":"eAy7w1HN","api_mp_math_const.md":"D9zs7__H","api_mp_math_equation.md":"D6QhNvHe","api_mp_math_index.md":"4P0hk6gb","api_mp_math_line.md":"DsJQDchM","api_mp_math_mp_math_typing.md":"COrE_fd3","api_mp_math_plane.md":"CmoVvPiw","api_mp_math_point.md":"ClJD85mP","api_mp_math_segment.md":"7jBtS4F1","api_mp_math_utils.md":"BMwtm7TJ","api_mp_math_vector.md":"CROCIDXX","api_particle_index.md":"BRCSxC3e","api_presets_index.md":"Dl6Ss91J","api_presets_model_index.md":"DUZx13AW","en_api_index.md":"Bgu-LD1B","en_api_mp_math_angle.md":"BuhpKHnt","en_api_mp_math_const.md":"D_Flpj8t","en_api_mp_math_equation.md":"CdqZIJEO","en_api_mp_math_index.md":"DrjDUYBY","en_api_mp_math_line.md":"BEvxdWYQ","en_api_mp_math_mp_math_typing.md":"CyXXFdS4","en_api_mp_math_plane.md":"DUu9P3nM","en_api_mp_math_point.md":"DMig0FI1","en_api_mp_math_segment.md":"CcaokAF8","en_api_mp_math_utils.md":"DZohqw2b","en_api_mp_math_vector.md":"Sd_IZsgE","en_api_particle_index.md":"CmC1QX5o","en_api_presets_index.md":"CZ5hl_7D","en_api_presets_model_index.md":"Cs8vON2C","guide_index.md":"BE2yloik","index.md":"BE1qChTt","ja_api_index.md":"4BnflFIm","ja_api_mp_math_angle.md":"DL9J6RE2","ja_api_mp_math_const.md":"CyaIJkFx","ja_api_mp_math_equation.md":"B2lD-VSI","ja_api_mp_math_index.md":"CSAMHYsB","ja_api_mp_math_line.md":"fj-_s5Ug","ja_api_mp_math_mp_math_typing.md":"Bl5kyhpI","ja_api_mp_math_plane.md":"yLekgCvK","ja_api_mp_math_point.md":"CpHHrSk8","ja_api_mp_math_segment.md":"CB1_z-rn","ja_api_mp_math_utils.md":"BrfEEfl-","ja_api_mp_math_vector.md":"p54TKACE","ja_api_particle_index.md":"E2YnH7EN","ja_api_presets_index.md":"ATGcHt9d","ja_api_presets_model_index.md":"D8yZmO5R","md-ex.md":"BX0WqOqv","zht_api_index.md":"Dq4XPUKZ","zht_api_mp_math_angle.md":"B4T6L25M","zht_api_mp_math_const.md":"B8uQOIr_","zht_api_mp_math_equation.md":"H6Y480q1","zht_api_mp_math_index.md":"D09y2ubg","zht_api_mp_math_line.md":"DYC1X0oD","zht_api_mp_math_mp_math_typing.md":"DLx0IibM","zht_api_mp_math_plane.md":"B6GWRRF6","zht_api_mp_math_point.md":"Bm1IEwlI","zht_api_mp_math_segment.md":"Bop8t2IE","zht_api_mp_math_utils.md":"CERv8c-M","zht_api_mp_math_vector.md":"BTWxlpB1","zht_api_particle_index.md":"kAm9VAEw","zht_api_presets_index.md":"BmouaEaT","zht_api_presets_model_index.md":"SQ5PPdaL"} +{"api-ex.md":"DOsKaL8H","api_index.md":"BvazTqTB","api_mp_math_angle.md":"eAy7w1HN","api_mp_math_const.md":"D9zs7__H","api_mp_math_equation.md":"Bx8s1yFf","api_mp_math_index.md":"4P0hk6gb","api_mp_math_line.md":"DsJQDchM","api_mp_math_mp_math_typing.md":"COrE_fd3","api_mp_math_plane.md":"CmoVvPiw","api_mp_math_point.md":"ClJD85mP","api_mp_math_segment.md":"7jBtS4F1","api_mp_math_utils.md":"BMwtm7TJ","api_mp_math_vector.md":"CROCIDXX","api_particle_index.md":"BRCSxC3e","api_presets_index.md":"Dl6Ss91J","api_presets_model_index.md":"DUZx13AW","en_api_index.md":"Bgu-LD1B","en_api_mp_math_angle.md":"BuhpKHnt","en_api_mp_math_const.md":"D_Flpj8t","en_api_mp_math_equation.md":"BuG3Sd0K","en_api_mp_math_index.md":"DrjDUYBY","en_api_mp_math_line.md":"BEvxdWYQ","en_api_mp_math_mp_math_typing.md":"CyXXFdS4","en_api_mp_math_plane.md":"DUu9P3nM","en_api_mp_math_point.md":"DMig0FI1","en_api_mp_math_segment.md":"CcaokAF8","en_api_mp_math_utils.md":"DZohqw2b","en_api_mp_math_vector.md":"Sd_IZsgE","en_api_particle_index.md":"CmC1QX5o","en_api_presets_index.md":"CZ5hl_7D","en_api_presets_model_index.md":"Cs8vON2C","guide_index.md":"BE2yloik","index.md":"BE1qChTt","ja_api_index.md":"4BnflFIm","ja_api_mp_math_angle.md":"DL9J6RE2","ja_api_mp_math_const.md":"CyaIJkFx","ja_api_mp_math_equation.md":"DvgEtgmw","ja_api_mp_math_index.md":"CSAMHYsB","ja_api_mp_math_line.md":"fj-_s5Ug","ja_api_mp_math_mp_math_typing.md":"Bl5kyhpI","ja_api_mp_math_plane.md":"yLekgCvK","ja_api_mp_math_point.md":"CpHHrSk8","ja_api_mp_math_segment.md":"CB1_z-rn","ja_api_mp_math_utils.md":"BrfEEfl-","ja_api_mp_math_vector.md":"p54TKACE","ja_api_particle_index.md":"E2YnH7EN","ja_api_presets_index.md":"ATGcHt9d","ja_api_presets_model_index.md":"D8yZmO5R","md-ex.md":"BX0WqOqv","zht_api_index.md":"Dq4XPUKZ","zht_api_mp_math_angle.md":"B4T6L25M","zht_api_mp_math_const.md":"B8uQOIr_","zht_api_mp_math_equation.md":"CtFwMbbV","zht_api_mp_math_index.md":"D09y2ubg","zht_api_mp_math_line.md":"DYC1X0oD","zht_api_mp_math_mp_math_typing.md":"DLx0IibM","zht_api_mp_math_plane.md":"B6GWRRF6","zht_api_mp_math_point.md":"Bm1IEwlI","zht_api_mp_math_segment.md":"Bop8t2IE","zht_api_mp_math_utils.md":"CERv8c-M","zht_api_mp_math_vector.md":"BTWxlpB1","zht_api_particle_index.md":"kAm9VAEw","zht_api_presets_index.md":"BmouaEaT","zht_api_presets_model_index.md":"SQ5PPdaL"} diff --git a/index.html b/index.html index a782838..ad97001 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@
Skip to content

MBCP docs

More basic change particle

用于几何运算和粒子制作的库

- + \ No newline at end of file diff --git a/ja/api/index.html b/ja/api/index.html index 91c8f08..7183624 100644 --- a/ja/api/index.html +++ b/ja/api/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/ja/api/mp_math/angle.html b/ja/api/mp_math/angle.html index 3a55bb1..b5e3b49 100644 --- a/ja/api/mp_math/angle.html +++ b/ja/api/mp_math/angle.html @@ -116,7 +116,7 @@ if isinstance(other, AnyAngle): return self.radian / other.radian return AnyAngle(self.radian / other, is_radian=True) - + \ No newline at end of file diff --git a/ja/api/mp_math/const.html b/ja/api/mp_math/const.html index f1adc88..113538b 100644 --- a/ja/api/mp_math/const.html +++ b/ja/api/mp_math/const.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/ja/api/mp_math/equation.html b/ja/api/mp_math/equation.html index 7089624..cf32f10 100644 --- a/ja/api/mp_math/equation.html +++ b/ja/api/mp_math/equation.html @@ -12,7 +12,7 @@ - + @@ -35,14 +35,7 @@ if isinstance(var, int): def partial_derivative_func(*args: Var) -> Var: - """ - @litedoc-hide - Args: - *args: - - Returns: - - """ + """@litedoc-hide""" args_list_plus = list(args) args_list_plus[var] += epsilon args_list_minus = list(args) @@ -52,7 +45,14 @@ elif isinstance(var, tuple): def high_order_partial_derivative_func(*args: Var) -> Var: - """@litedoc-hide""" + """ + @litedoc-hide + 求高阶偏导函数 + Args: + *args: 参数 + Returns: + 高阶偏导数值 + """ result_func = func for v in var: result_func = get_partial_derivative_func(result_func, v, epsilon) @@ -97,7 +97,7 @@ return Point3(self.x_func(t[0]), self.y_func(t[0]), self.z_func(t[0])) else: return tuple([Point3(x, y, z) for x, y, z in zip(self.x_func(t), self.y_func(t), self.z_func(t))]) - + \ No newline at end of file diff --git a/ja/api/mp_math/index.html b/ja/api/mp_math/index.html index f20c69e..90e0b4a 100644 --- a/ja/api/mp_math/index.html +++ b/ja/api/mp_math/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/ja/api/mp_math/line.html b/ja/api/mp_math/line.html index 0feee8b..07c8c72 100644 --- a/ja/api/mp_math/line.html +++ b/ja/api/mp_math/line.html @@ -195,7 +195,7 @@ """ return self.direction.is_parallel(other.direction) and (self.point - other.point).is_parallel(self.direction) - + \ No newline at end of file diff --git a/ja/api/mp_math/mp_math_typing.html b/ja/api/mp_math/mp_math_typing.html index b9fcaef..eb0f2b8 100644 --- a/ja/api/mp_math/mp_math_typing.html +++ b/ja/api/mp_math/mp_math_typing.html @@ -18,7 +18,7 @@
Skip to content

var RealNumber = int | float

  • タイプ: TypeAlias

  • 説明: 实数

var Number = RealNumber | complex

  • タイプ: TypeAlias

  • 説明: 数

var SingleVar = TypeVar('SingleVar', bound=Number)

  • 説明: 单变量

var ArrayVar = TypeVar('ArrayVar', bound=Iterable[Number])

  • 説明: 数组变量

var Var = SingleVar | ArrayVar

  • タイプ: TypeAlias

  • 説明: 变量

var OneSingleVarFunc = Callable[[SingleVar], SingleVar]

  • タイプ: TypeAlias

  • 説明: 一元单变量函数

var OneArrayFunc = Callable[[ArrayVar], ArrayVar]

  • タイプ: TypeAlias

  • 説明: 一元数组函数

var OneVarFunc = OneSingleVarFunc | OneArrayFunc

  • タイプ: TypeAlias

  • 説明: 一元函数

var TwoSingleVarsFunc = Callable[[SingleVar, SingleVar], SingleVar]

  • タイプ: TypeAlias

  • 説明: 二元单变量函数

var TwoArraysFunc = Callable[[ArrayVar, ArrayVar], ArrayVar]

  • タイプ: TypeAlias

  • 説明: 二元数组函数

var TwoVarsFunc = TwoSingleVarsFunc | TwoArraysFunc

  • タイプ: TypeAlias

  • 説明: 二元函数

var ThreeSingleVarsFunc = Callable[[SingleVar, SingleVar, SingleVar], SingleVar]

  • タイプ: TypeAlias

  • 説明: 三元单变量函数

var ThreeArraysFunc = Callable[[ArrayVar, ArrayVar, ArrayVar], ArrayVar]

  • タイプ: TypeAlias

  • 説明: 三元数组函数

var ThreeVarsFunc = ThreeSingleVarsFunc | ThreeArraysFunc

  • タイプ: TypeAlias

  • 説明: 三元函数

var MultiSingleVarsFunc = Callable[..., SingleVar]

  • タイプ: TypeAlias

  • 説明: 多元单变量函数

var MultiArraysFunc = Callable[..., ArrayVar]

  • タイプ: TypeAlias

  • 説明: 多元数组函数

var MultiVarsFunc = MultiSingleVarsFunc | MultiArraysFunc

  • タイプ: TypeAlias

  • 説明: 多元函数

- + \ No newline at end of file diff --git a/ja/api/mp_math/plane.html b/ja/api/mp_math/plane.html index c28e233..d8b5121 100644 --- a/ja/api/mp_math/plane.html +++ b/ja/api/mp_math/plane.html @@ -213,7 +213,7 @@ raise TypeError(f"unsupported operand type(s) for &: 'Plane3' and '{type(other)}'")

method __eq__(self, other) -> bool

ソースコード
python
def __eq__(self, other) -> bool:
     return self.approx(other)

method __rand__(self, other: Line3) -> Point3

ソースコード
python
def __rand__(self, other: 'Line3') -> 'Point3':
     return self.cal_intersection_point3(other)
- + \ No newline at end of file diff --git a/ja/api/mp_math/point.html b/ja/api/mp_math/point.html index 9fc5f41..de2feb3 100644 --- a/ja/api/mp_math/point.html +++ b/ja/api/mp_math/point.html @@ -68,7 +68,7 @@ """ from .vector import Vector3 return Vector3(self.x - other.x, self.y - other.y, self.z - other.z) - + \ No newline at end of file diff --git a/ja/api/mp_math/segment.html b/ja/api/mp_math/segment.html index dbf4ebe..a1dee82 100644 --- a/ja/api/mp_math/segment.html +++ b/ja/api/mp_math/segment.html @@ -31,7 +31,7 @@ self.length = self.direction.length '中心点' self.midpoint = Point3((self.p1.x + self.p2.x) / 2, (self.p1.y + self.p2.y) / 2, (self.p1.z + self.p2.z) / 2) - + \ No newline at end of file diff --git a/ja/api/mp_math/utils.html b/ja/api/mp_math/utils.html index 753a5c7..e6c566e 100644 --- a/ja/api/mp_math/utils.html +++ b/ja/api/mp_math/utils.html @@ -81,7 +81,7 @@ self.raise_type_error(other)

method raise_type_error(self, other)

ソースコード
python
def raise_type_error(self, other):
     raise TypeError(f'Unsupported type: {type(self.value)} and {type(other)}')

method __ne__(self, other)

ソースコード
python
def __ne__(self, other):
     return not self.__eq__(other)
- + \ No newline at end of file diff --git a/ja/api/mp_math/vector.html b/ja/api/mp_math/vector.html index ff0cdf1..46b1ca8 100644 --- a/ja/api/mp_math/vector.html +++ b/ja/api/mp_math/vector.html @@ -204,7 +204,7 @@ return self.x * other.x + self.y * other.y + self.z * other.z

method self / other: RealNumber => Vector3

ソースコード
python
def __truediv__(self, other: RealNumber) -> 'Vector3':
     return Vector3(self.x / other, self.y / other, self.z / other)

method - self

ソースコード
python
def __neg__(self):
     return Vector3(-self.x, -self.y, -self.z)

var zero_vector3 = Vector3(0, 0, 0)

var x_axis = Vector3(1, 0, 0)

var y_axis = Vector3(0, 1, 0)

var z_axis = Vector3(0, 0, 1)

- + \ No newline at end of file diff --git a/ja/api/particle/index.html b/ja/api/particle/index.html index 51f4dd2..f408f31 100644 --- a/ja/api/particle/index.html +++ b/ja/api/particle/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/ja/api/presets/index.html b/ja/api/presets/index.html index 2d22221..75336a0 100644 --- a/ja/api/presets/index.html +++ b/ja/api/presets/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/ja/api/presets/model/index.html b/ja/api/presets/model/index.html index b1b9b89..5404213 100644 --- a/ja/api/presets/model/index.html +++ b/ja/api/presets/model/index.html @@ -35,7 +35,7 @@ y_array = radius * np.sin(phi_list) * np.sin(theta_list) z_array = radius * np.cos(phi_list) return [Point3(x_array[i], y_array[i], z_array[i]) for i in range(num)] - + \ No newline at end of file diff --git a/md-ex.html b/md-ex.html index f8948be..0b4cf49 100644 --- a/md-ex.html +++ b/md-ex.html @@ -50,7 +50,7 @@ ::: details This is a details block. :::

Output

INFO

This is an info box.

TIP

This is a tip.

WARNING

This is a warning.

DANGER

This is a dangerous warning.

Details

This is a details block.

More

Check out the documentation for the full list of markdown extensions.

- + \ No newline at end of file diff --git a/zht/api/index.html b/zht/api/index.html index 5b4943f..38ec51f 100644 --- a/zht/api/index.html +++ b/zht/api/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/zht/api/mp_math/angle.html b/zht/api/mp_math/angle.html index 30253d3..be17b2e 100644 --- a/zht/api/mp_math/angle.html +++ b/zht/api/mp_math/angle.html @@ -116,7 +116,7 @@ if isinstance(other, AnyAngle): return self.radian / other.radian return AnyAngle(self.radian / other, is_radian=True) - + \ No newline at end of file diff --git a/zht/api/mp_math/const.html b/zht/api/mp_math/const.html index 4d8dabd..c3736b1 100644 --- a/zht/api/mp_math/const.html +++ b/zht/api/mp_math/const.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/zht/api/mp_math/equation.html b/zht/api/mp_math/equation.html index 036eb84..1d25063 100644 --- a/zht/api/mp_math/equation.html +++ b/zht/api/mp_math/equation.html @@ -12,7 +12,7 @@ - + @@ -35,14 +35,7 @@ if isinstance(var, int): def partial_derivative_func(*args: Var) -> Var: - """ - @litedoc-hide - Args: - *args: - - Returns: - - """ + """@litedoc-hide""" args_list_plus = list(args) args_list_plus[var] += epsilon args_list_minus = list(args) @@ -52,7 +45,14 @@ elif isinstance(var, tuple): def high_order_partial_derivative_func(*args: Var) -> Var: - """@litedoc-hide""" + """ + @litedoc-hide + 求高阶偏导函数 + Args: + *args: 参数 + Returns: + 高阶偏导数值 + """ result_func = func for v in var: result_func = get_partial_derivative_func(result_func, v, epsilon) @@ -97,7 +97,7 @@ return Point3(self.x_func(t[0]), self.y_func(t[0]), self.z_func(t[0])) else: return tuple([Point3(x, y, z) for x, y, z in zip(self.x_func(t), self.y_func(t), self.z_func(t))]) - + \ No newline at end of file diff --git a/zht/api/mp_math/index.html b/zht/api/mp_math/index.html index 134f4b6..199fadd 100644 --- a/zht/api/mp_math/index.html +++ b/zht/api/mp_math/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/zht/api/mp_math/line.html b/zht/api/mp_math/line.html index 6817093..96e13ef 100644 --- a/zht/api/mp_math/line.html +++ b/zht/api/mp_math/line.html @@ -195,7 +195,7 @@ """ return self.direction.is_parallel(other.direction) and (self.point - other.point).is_parallel(self.direction) - + \ No newline at end of file diff --git a/zht/api/mp_math/mp_math_typing.html b/zht/api/mp_math/mp_math_typing.html index e5133ec..728f324 100644 --- a/zht/api/mp_math/mp_math_typing.html +++ b/zht/api/mp_math/mp_math_typing.html @@ -18,7 +18,7 @@
Skip to content

var RealNumber = int | float

  • 類型: TypeAlias

  • 説明: 实数

var Number = RealNumber | complex

  • 類型: TypeAlias

  • 説明: 数

var SingleVar = TypeVar('SingleVar', bound=Number)

  • 説明: 单变量

var ArrayVar = TypeVar('ArrayVar', bound=Iterable[Number])

  • 説明: 数组变量

var Var = SingleVar | ArrayVar

  • 類型: TypeAlias

  • 説明: 变量

var OneSingleVarFunc = Callable[[SingleVar], SingleVar]

  • 類型: TypeAlias

  • 説明: 一元单变量函数

var OneArrayFunc = Callable[[ArrayVar], ArrayVar]

  • 類型: TypeAlias

  • 説明: 一元数组函数

var OneVarFunc = OneSingleVarFunc | OneArrayFunc

  • 類型: TypeAlias

  • 説明: 一元函数

var TwoSingleVarsFunc = Callable[[SingleVar, SingleVar], SingleVar]

  • 類型: TypeAlias

  • 説明: 二元单变量函数

var TwoArraysFunc = Callable[[ArrayVar, ArrayVar], ArrayVar]

  • 類型: TypeAlias

  • 説明: 二元数组函数

var TwoVarsFunc = TwoSingleVarsFunc | TwoArraysFunc

  • 類型: TypeAlias

  • 説明: 二元函数

var ThreeSingleVarsFunc = Callable[[SingleVar, SingleVar, SingleVar], SingleVar]

  • 類型: TypeAlias

  • 説明: 三元单变量函数

var ThreeArraysFunc = Callable[[ArrayVar, ArrayVar, ArrayVar], ArrayVar]

  • 類型: TypeAlias

  • 説明: 三元数组函数

var ThreeVarsFunc = ThreeSingleVarsFunc | ThreeArraysFunc

  • 類型: TypeAlias

  • 説明: 三元函数

var MultiSingleVarsFunc = Callable[..., SingleVar]

  • 類型: TypeAlias

  • 説明: 多元单变量函数

var MultiArraysFunc = Callable[..., ArrayVar]

  • 類型: TypeAlias

  • 説明: 多元数组函数

var MultiVarsFunc = MultiSingleVarsFunc | MultiArraysFunc

  • 類型: TypeAlias

  • 説明: 多元函数

- + \ No newline at end of file diff --git a/zht/api/mp_math/plane.html b/zht/api/mp_math/plane.html index 2ef3cb9..d321d38 100644 --- a/zht/api/mp_math/plane.html +++ b/zht/api/mp_math/plane.html @@ -213,7 +213,7 @@ raise TypeError(f"unsupported operand type(s) for &: 'Plane3' and '{type(other)}'")

method __eq__(self, other) -> bool

源碼
python
def __eq__(self, other) -> bool:
     return self.approx(other)

method __rand__(self, other: Line3) -> Point3

源碼
python
def __rand__(self, other: 'Line3') -> 'Point3':
     return self.cal_intersection_point3(other)
- + \ No newline at end of file diff --git a/zht/api/mp_math/point.html b/zht/api/mp_math/point.html index 0859018..4b3cfe3 100644 --- a/zht/api/mp_math/point.html +++ b/zht/api/mp_math/point.html @@ -68,7 +68,7 @@ """ from .vector import Vector3 return Vector3(self.x - other.x, self.y - other.y, self.z - other.z) - + \ No newline at end of file diff --git a/zht/api/mp_math/segment.html b/zht/api/mp_math/segment.html index f934193..61b355d 100644 --- a/zht/api/mp_math/segment.html +++ b/zht/api/mp_math/segment.html @@ -31,7 +31,7 @@ self.length = self.direction.length '中心点' self.midpoint = Point3((self.p1.x + self.p2.x) / 2, (self.p1.y + self.p2.y) / 2, (self.p1.z + self.p2.z) / 2) - + \ No newline at end of file diff --git a/zht/api/mp_math/utils.html b/zht/api/mp_math/utils.html index 3b1c24b..c155199 100644 --- a/zht/api/mp_math/utils.html +++ b/zht/api/mp_math/utils.html @@ -81,7 +81,7 @@ self.raise_type_error(other)

method raise_type_error(self, other)

源碼
python
def raise_type_error(self, other):
     raise TypeError(f'Unsupported type: {type(self.value)} and {type(other)}')

method __ne__(self, other)

源碼
python
def __ne__(self, other):
     return not self.__eq__(other)
- + \ No newline at end of file diff --git a/zht/api/mp_math/vector.html b/zht/api/mp_math/vector.html index 38e55ff..d44f8e1 100644 --- a/zht/api/mp_math/vector.html +++ b/zht/api/mp_math/vector.html @@ -204,7 +204,7 @@ return self.x * other.x + self.y * other.y + self.z * other.z

method self / other: RealNumber => Vector3

源碼
python
def __truediv__(self, other: RealNumber) -> 'Vector3':
     return Vector3(self.x / other, self.y / other, self.z / other)

method - self

源碼
python
def __neg__(self):
     return Vector3(-self.x, -self.y, -self.z)

var zero_vector3 = Vector3(0, 0, 0)

var x_axis = Vector3(1, 0, 0)

var y_axis = Vector3(0, 1, 0)

var z_axis = Vector3(0, 0, 1)

- + \ No newline at end of file diff --git a/zht/api/particle/index.html b/zht/api/particle/index.html index b871c19..0c59267 100644 --- a/zht/api/particle/index.html +++ b/zht/api/particle/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/zht/api/presets/index.html b/zht/api/presets/index.html index e2aa364..933ee51 100644 --- a/zht/api/presets/index.html +++ b/zht/api/presets/index.html @@ -18,7 +18,7 @@
- + \ No newline at end of file diff --git a/zht/api/presets/model/index.html b/zht/api/presets/model/index.html index afd8598..a0309f2 100644 --- a/zht/api/presets/model/index.html +++ b/zht/api/presets/model/index.html @@ -35,7 +35,7 @@ y_array = radius * np.sin(phi_list) * np.sin(theta_list) z_array = radius * np.cos(phi_list) return [Point3(x_array[i], y_array[i], z_array[i]) for i in range(num)] - + \ No newline at end of file