清华大学出版社出版在某乎上的电子书:Python 3.6 从入门到精通(视频教学版) 王英英 著
6.11 偏函数
Python 的 functools 模块提供了很多有用的功能,其中一个就是偏函数( Partial function )。注意,这里的偏函数和数学意义上的偏函数不一样。
数学上只学过偏微分、偏导数。请教:数学上的“偏函数”是个啥?
清华大学出版社出版在某乎上的电子书:Python 3.6 从入门到精通(视频教学版) 王英英 著
6.11 偏函数
Python 的 functools 模块提供了很多有用的功能,其中一个就是偏函数( Partial function )。注意,这里的偏函数和数学意义上的偏函数不一样。
数学上只学过偏微分、偏导数。请教:数学上的“偏函数”是个啥?
|
1
这个不就是 funtional programming 里常用的吗? currying
https://mostly-adequate.gitbook.io/mostly-adequate-guide/ch04 |
|
masterclockFeb 14, 2022
2
|
|
3
|
|
4
??
这个维基百科写的难道不是数学上的偏函数? |
|
XusuallyFeb 14, 2022 via iPhone
5
??? 2L 不是给了链接吗
|
|
6
|
|
c24941Feb 14, 2022
7
Not to be confused with the partial application of a function of several variables, by fixing some of them.
https://en.wikipedia.org/wiki/Partial_application |
|
JoooooooooFeb 15, 2022
8
@miniyao ?
In mathematics, a partial function f from a set X to a set Y is a function from a subset S of X (possibly X itself) to Y. The subset S, that is, the domain of f viewed as a function, is called the domain of definition of f. If S equals X, that is, if f is defined on every element in X, then f is said to be total. 维基你真的读过吗? |