V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
miniyao
V2EX  ›  问与答

清华版电子书:“偏函数”和数学上的偏函数不一样。数学上的偏函数是啥?

  •  
  •   miniyao · 2022-02-14 12:08:05 +08:00 · 1629 次点击
    这是一个创建于 774 天前的主题,其中的信息可能已经有所发展或是发生改变。

    清华大学出版社出版在某乎上的电子书:Python 3.6 从入门到精通(视频教学版) 王英英 著

    6.11 偏函数

    Python 的 functools 模块提供了很多有用的功能,其中一个就是偏函数( Partial function )。注意,这里的偏函数和数学意义上的偏函数不一样。


    数学上只学过偏微分、偏导数。请教:数学上的“偏函数”是个啥?

    8 条回复    2022-02-15 10:41:29 +08:00
    noe132
        1
    noe132  
       2022-02-14 12:12:58 +08:00   ❤️ 1
    这个不就是 funtional programming 里常用的吗? currying
    https://mostly-adequate.gitbook.io/mostly-adequate-guide/ch04
    masterclock
        2
    masterclock  
       2022-02-14 12:15:50 +08:00
    miniyao
        3
    miniyao  
    OP
       2022-02-14 12:41:05 +08:00 via Android
    @noe132
    @masterclock

    标题:“偏函数”和数学上的偏函数不一样。

    问的是数学上的“偏函数”是啥?哪里不一样?不是问编程里什么叫偏函数。
    masterclock
        4
    masterclock  
       2022-02-14 12:51:36 +08:00   ❤️ 1
    ??
    这个维基百科写的难道不是数学上的偏函数?
    Xusually
        5
    Xusually  
       2022-02-14 13:30:35 +08:00 via iPhone
    ??? 2L 不是给了链接吗
    miniyao
        6
    miniyao  
    OP
       2022-02-14 13:33:31 +08:00 via Android
    @masterclock
    @miniyao

    维基上的解释,Partial function 不就是编程上一样的吗,没看出来和数学上的“偏函数”有什么不同呀
    c24941
        7
    c24941  
       2022-02-14 14:21:01 +08:00
    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
    Jooooooooo
        8
    Jooooooooo  
       2022-02-15 10:41:29 +08:00
    @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.

    维基你真的读过吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5282 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:11 · PVG 17:11 · LAX 02:11 · JFK 05:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.