清华大学出版社出版在某乎上的电子书:Python 3.6 从入门到精通(视频教学版) 王英英 著
6.11 偏函数
Python 的 functools 模块提供了很多有用的功能,其中一个就是偏函数( Partial function )。注意,这里的偏函数和数学意义上的偏函数不一样。
数学上只学过偏微分、偏导数。请教:数学上的“偏函数”是个啥?
1
noe132 2022 年 2 月 14 日 这个不就是 funtional programming 里常用的吗? currying
https://mostly-adequate.gitbook.io/mostly-adequate-guide/ch04 |
2
masterclock 2022 年 2 月 14 日
|
3
miniyao OP |
4
masterclock 2022 年 2 月 14 日 ??
这个维基百科写的难道不是数学上的偏函数? |
5
Xusually 2022 年 2 月 14 日 via iPhone
??? 2L 不是给了链接吗
|
6
miniyao OP |
7
c24941 2022 年 2 月 14 日
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 |
8
Jooooooooo 2022 年 2 月 15 日
@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. 维基你真的读过吗? |