関数の話

 関数の話

Supershipの社内勉強会で使ったやつ

Bd3590aaffe8948079d27795cb6f7388?s=128

yuroyoro

July 13, 2016
Tweet

Transcript

  1. ؔ਺ͷ࿩ !ZVSPZPSP

  2. ؔ਺ͱ͸

  3. Z G Y ೖྗYʹରͯ͠ɺग़ྗZͷ஋Λܾఆ͢Δنଇ

  4.     " # $ % *OU 4USJOH

    ࣸ૾ͭͷू߹ͷରԠؔ܎
  5. JOU TUS JOH ू߹ܕͱߟ͑ΔͱɺܕͱܕͷରԠنଇ

  6. ؔ਺͕ ϑΝʔετΫϥε

  7. MFUGaY  TIPX Y ม਺ʹʮؔ਺ʯΛ୅ೖ ଋറ Ͱ͖Δ )BTLFMM

  8. G  Y  \YUP@T ^ ม਺ʹʮؔ਺ʯΛ୅ೖ ଋറ Ͱ͖Δ 3VCZ

  9. DPOTUG Y  \SFUVSOYUP4USJOH ^ ม਺ʹʮؔ਺ʯΛ୅ೖ ଋറ Ͱ͖Δ +BWB4DSJQU

  10. ؔ਺ద༻

  11. ධՁʮؔ਺ʯʹҾ਺Λ༩͑ͯ݁ՌΛಘΔ͜ͱ SFUVSOYUP4USJOH GJOUTUSJOH SFUVSO  ʠʡ Ҿ਺Y

  12. G H I  2Ͳͷؔ਺͔ΒʮධՁʯ͢Δ

  13. G H I  ਖ਼֨ධՁ಺ଆ͔Βɻී௨ͷݴޠ $+43VCZ+BWBʜ   

  14. G H I  ඇਖ਼֨ධՁ֎ଆ͔Βɻ஗ԆධՁ )BTLFMM*0ʜ   

  15. ߴ֊ؔ਺

  16. MFUH *OU4USJOH TUSJOH HBʠIFMMPʠ B ʮؔ਺ʯΛड͚औΔؔ਺ )BTLFMM

  17. H GO \ʠIFMMPʠ GO  ^ ʮؔ਺ʯΛड͚औΔؔ਺ 3VCZ

  18. DPOTUH GO  \SFUVSOʠIFMMPʠ GO  ^ ʮؔ਺ʯΛड͚औΔؔ਺ +BWB4DSJQU

  19. ʮؔ਺HʯͷҾ਺GOʹʮؔ਺GʯΛ༩͑Δ SFUVSOYUP4USJOH SFUVSOʠIFMMPʠ GO  GJOUTUSJOH H JOUTUSJOH TUSJOH lIFMMPz

    SFUVSO Ҿ਺GO
  20. ड͚औͬͨʮؔ਺ʯGOΛ࢖ͬͯTUSJOHΛฦ͢ H JOUTUSJOH TUSJOH SFUVSOʠIFMMPʠ SFUVSOYUP4USJOH GOJOUTUSJOH  lIFMMPz SFUVSO

    Ҿ਺Y SFUVSOYUP4USJOH GOJOUTUSJOH
  21. Ϋϩʔδϟ

  22. MFUB MFUIaYY B पғͷʮ؀ڥʯΛऔΓࠐΜͩʮؔ਺ʯ )BTLFMM

  23. B I Y \Y B^ पғͷʮ؀ڥʯΛऔΓࠐΜͩʮؔ਺ʯ 3VCZ

  24. DPOTUB DPOTUI Y \SFUVSOY B^ पғͷʮ؀ڥʯΛऔΓࠐΜͩʮؔ਺ʯ +BWB4DSJQU

  25. ʮؔ਺Iʯ͸ʮBʯͱ͍͏؀ڥΛ͍֮͑ͯΔ SFUVSOY  IJOUJOU B B ؀ڥΛऔΓࠐΉ

  26. ʮؔ਺ʯ͕ʮঢ়ଶʯΛ͍࣋ͬͯΔͱ΋ݴ͑Δ SFUVSOY  IJOUJOU B SFUVSO  

  27. Ϋϩʔδϟͱ ߴ֊ؔ਺

  28. MFUJ*OU *OU4USJOH  JYaZTIPX Y Z Ҿ਺ΛऔΓࠐΜͩʮΫϩʔδϟʯΛ࡞ͬͯฦ͢ʮؔ਺ʯ )BTLFMM Ϋϩʔδϟ

  29. J Y \  Z \ Y Z UP@T^ ^

    Ҿ਺ΛऔΓࠐΜͩʮΫϩʔδϟʯΛ࡞ͬͯฦ͢ʮؔ਺ʯ 3VCZ Ϋϩʔδϟ
  30. DPOTUJ Y \ SFUVSO Z \ SFUVSO Y Z UP4USJOH

     ^ ^ Ҿ਺ΛऔΓࠐΜͩʮΫϩʔδϟʯΛ࡞ͬͯฦ͢ʮؔ਺ʯ +BWB4DSJQU Ϋϩʔδϟ
  31. ड͚औͬͨҾ਺ΛऔΓࠐΜͩʮΫϩʔδϟʯΛฦ͢ JJOUJOUTUSJOH SFUVSO JOUTUSJOH SFUVSO Y ؀ڥΛऔΓࠐΉ SFUVSO Z UP4USJOH

    Y  Y SFUVSO Z UP4USJOH Ҿ਺Y JOUTUSJOH
  32. ؔ਺߹੒

  33. GɾH Y G H Y ̎ͭͷؔ਺G HΛॱ൪ʹద༻͢Δ߹੒ؔ਺GɾHΛੜ੒͢Δ͜ͱ

  34. MFUGaYY  MFUHaYTIPXY MFUHGaYHGY ؔ਺HG͸Ҿ਺YΛGʹద༻ͨ݁͠ՌΛHʹద༻ͯ͠ฦ͢ )BTLFMM

  35. G Y \Y ^ H Y \YUP@T^ HG Y \H

    G Y ^ ؔ਺HG͸Ҿ਺YΛGʹద༻ͨ݁͠ՌΛHʹద༻ͯ͠ฦ͢ 3VCZ
  36. DPOTUG Y \SFUVSOY ^ DPOTUH Y \SFUVSOYUP4USJOH ^ DPOTUHG Y

    \SFUVSOH G Y ^ ؔ਺HG͸Ҿ਺YΛGʹద༻ͨ݁͠ՌΛHʹద༻ͯ͠ฦ͢ +BWB4DSJQU
  37. ߹੒ؔ਺HG͸ؔ਺GͱHΛ΋ͭʮΫϩʔδϟʯ SFUVSO HGJOUTUSJOH SFUVSOY  GJOUJOU SFUVSOYUP4USJOH HJOUTUSJOH SFUVSOY 

    GJOUJOU SFUVSOYUP4USJOH HJOUTUSJOH
  38. ߹੒ؔ਺HG͸ؔ਺GͱHΛ΋ͭʮΫϩʔδϟʯ SFUVSO HGJOUTUSJOH SFUVSOY  GJOUJOU SFUVSOYUP4USJOH HJOUTUSJOH  SFUVSO

    ʠʡ
  39. ؔ਺߹੒͢Δؔ਺

  40. DPNQPTF G H GɾH ̎ͭͷؔ਺G HΛҾ਺ʹ߹੒ؔ਺HGΛฦ͢ʮؔ਺ʯ

  41.   CD  BC BD MFUHGHG )BTLFMMʹ͸૊ΈࠐΈͰ  ؔ਺͕͋Δ

    )BTLFMM
  42. EFGDPNQPTF H G   Y \H G Y ^

    FOE 3VCZͰ͸Ҿ਺H G͔ΒMBNCEBΛੜ੒ͯ͠ฦ͢ 3VCZ
  43. DMBTT1SPD EFGDPNQPTF G   Y \TFMG G Y ^

    FOE BMJBT@NFUIPE DPNQPTF FOE 1SPDΫϥεͷΠϯελϯεϝιουʹ͢Δͷ͕ࣗવ 3VCZ
  44. G Y \Y ^ H Y \YUP@T^ HDPNQPTF G 

      HG   1SPDΫϥεͷΠϯελϯεϝιουʹ͢Δͷ͕ࣗવ 3VCZ
  45. DPOTUDPNQPTF H G \ SFUVSO Y \SFUVSOH G Y ^

    ^ +BWB4DSJQUͰ͸Ҿ਺H G͔ΒGVODUJPOΛੜ੒ͯ͠ฦ͢ +BWB4DSJQU
  46. 'VODUJPOQSPUPUZQFDPNQPTF GVODUJPO G \ SFUVSO Y \SFUVSOUIJT G Y ^

    ^ 'VODUJPOʹDPNQPTFΛఆٛ͢Δํ͕ࣗવ +BWB4DSJQU
  47. ؔ਺ W T ΦϒδΣΫτ

  48. Φ ϒδΣ Ϋ τ  ؔ ਺  ม ਺

    ʹ୅ ೖͰ͖ Δ ม ਺ ʹ୅ ೖͰ͖ Δ
  49. Φ ϒδΣ Ϋ τ  ؔ ਺  ؔ ਺

    ͷҾ ਺ʹ౉ ͤ Δ ؔ ਺ ͷҾ ਺ʹ౉ ͤ Δ
  50. Φ ϒδΣ Ϋ τ  ؔ ਺  ঢ় ଶ

    Λ࣋ ͭ ϝϯό ʔ ม਺ ঢ় ଶ Λ࣋ ͭ Ϋϩʔ δ ϟ
  51. Φ ϒδΣ Ϋ τ  ؔ ਺  ؔ ਺

    Ͱੜ ੒ͯ͠  ໭ Γ ஋ʹ Ͱ͖Δ ؔ ਺ Ͱੜ ੒ͯ͠  ໭ Γ ஋ʹ Ͱ͖Δ
  52. Φ ϒδΣ Ϋ τ  ؔ ਺  ૊ Έ

    ߹Θ ͤΔ͜ ͱ ͕Ͱ͖ Δ EF M FH BU F D PN Q PTJ UJP O ૊ Έ ߹Θ ͤΔ͜ ͱ ͕Ͱ͖ Δ ؔ ਺߹੒
  53. ؔ਺͜Θ͘ͳ͍ ͜Θ͘ͳ͍

  54. ͔͜͜Β͸ ͕࣌ؒ༨ͬͨΒ

  55. ؔ਺߹੒ͷ ॱং

  56. I H G Y YΛGʹ౉ͨ݁͠ՌΛɺHʹ౉ͯ͠ಘͨ݁ՌΛɺIʹ౉͢

  57. I H G Y ӈ͔Βࠨ΁ॲཧ͕ྲྀΕ͍ͯ͘

  58. IɾHɾG Y ߹੒ؔ਺IɾHɾG͸ӈ͔Βద༻͞Ε͍ͯ͘

  59. GH Y H G Y ߹੒ͷॱংΛٯʹͯ͠߹੒͢Δ  Λߟ͑Δ GɾH Y

    G H Y
  60.  Ͱ߹੒͢Δͱɺॲཧ͕ࠨ͔ΒӈʹྲྀΕΔ I H G Y  GHI Y

  61. JNQPSU$POUSPM$BUFHPSZ  $BUFHPSZDBUDBUBCDBUCDDBUBD )BTLFMMͰ͸$POUSPM$BUFHPSZʹ  ͕͋Δ )BTLFMM

  62. DMBTT1SPD EFG H   Y \H TFMG Y ^

    FOE FOE 3VCZͰ͸1SPDͷԋࢉࢠ  Λॻ͖׵͑Δ 3VCZ
  63. 'VODUJPOQSPUPUZQFBOE5IFO GVODUJPO G \ SFUVSO Y \SFUVSOG UIJT Y ^

    ^ 'VODUJPOʹBOE5IFOͳͲ࡞Ε͹Ͳ͏ʹ͔ +BWB4DSJQU
  64. ؔ਺߹੒ͷॱংΛม͑Δͱ ࠨ͔Βӈ΁ॲཧͷྲྀΕΛ දݱ͢Δ͜ͱ͕Ͱ͖Δ ೔ຊਓͳͷͰࠨ͔ΒಡΈ͍ͨ

  65. ؔ਺͜Θ͘ͳ͍ ͜Θ͘ͳ͍

  66. ؔ਺ద༻͢Δ ؔ਺

  67. ؔ਺ద༻΋ࠨ͔Βӈʹྲྀ͍ͨ͠ GHI Y

  68. ] ͸ؔ਺ద༻͢Δʮؔ਺ʯ Y]GG Y

  69. Y͕ࠨ͔ΒӈʹG H IΛ௨ͬͯྲྀΕ͍ͯ͘ Y] GHI

  70. ] B BC C B]GGB தஔԋࢉࢠ ] ͸ӈลͷؔ਺ʹࠨลͷ஋Λ౉͢ )BTLFMM

  71. DMBTT0CKFDU EFGʛʼ G  G TFMG  FOE FOE 3VCZͰ͸શ֯

    ʛʼ ͰͲ͏ʹ͔ʜ 3VCZ
  72. 0CKFDUQSPUPUZQFSFWBQQMZ GVODUJPO G \SFUVSOG UIJT ^ 0CKFDUQSPUPUZQFԚછ +BWB4DSJQU

  73. ؔ਺ద༻͢Δؔ਺Ͱ Ҿ਺͕ࠨ͔Βӈ΁ྲྀΕΔ༷Λ දݱ͢Δ͜ͱ͕Ͱ͖Δ ೔ຊਓͳͷͰࠨ͔ΒಡΈ͍ͨ

  74. 6OJYͷQJQF΍ &MJYJSͷ]ͳͲ Ͱ΋͋Μ·Γ͜͏͍͏ॻ͖ํ͠ͳ͍͚Ͳʜ

  75. ؔ਺͜Θ͘ͳ͍ ͜Θ͘ͳ͍

  76. ؔ਺߹੒ͷ จ຺

  77. EFGDPNQPTF G   Y \TFMG G Y ^ FOE

    ؔ਺߹੒ͷ࣮૷Ͱʜ 3VCZ
  78. EFG G   Y \TFMG G Y  

    ^ FOE G Y ͷ݁ՌΛഒʹͯ͠ΈΔ 3VCZ
  79. G Y \Y ^ H Y \Y ^ I Y

    \YUP@T^ IHG   ʠʡ ߹੒͞Εͨؔ਺ͷؒͰҾ਺͕ഒʹ 3VCZ
  80. ߹੒͞Εͨؔ਺ͷؒͰҾ਺͕ഒʹ Y  GJOUJOU Y  HJOUJOU YUP@T IJOUTUSJOH 

        ʠʡ
  81. EFG G   Y \ SFTG Y  SFTOJM

     OJMTFMG SFT  ^ FOE G Y ͕OJMͳΒ͹ɺ߹੒͞Εͨؔ਺Λݺ͹ͣʹऴྃ͢Δ 3VCZ
  82. G Y \<OJM Y >TBNQMF^ H Y \<OJM Y >TBNQMF^

    I Y \YUP@T^ IHG   OJMPSʠʡ G HͷͲͪΒ͔͕OJMΛฦ͢ͱશମͷ݁Ռ͕OJMʹͳΔ 3VCZ
  83. ߹੒͞Εͨؔ਺ͷؒͰOJMνΣοΫ <OJM Y >TBNQMF GJOUJOU <OJM Y >TBNQMF HJOUJOU YUP@T

    IJOUTUSJOH  OJM OJM ʠʡ ऴྃ ऴྃ
  84. ʮ݁Ռ͕ഒʹͳΔʯจ຺ ʮOJMͩͱதࢭ͢Δʯจ຺ ؔ਺߹੒ʹ༷ʑͳʮจ຺ʯΛ༩͑Δ͜ͱ͕Ͱ͖Δ

  85. ʮঢ়ଶ͕มԽ͢Δʯจ຺ ʮೖग़ྗ͕ൃੜ͢Δʯจ຺ ʮඇಉظͰܭࢉ͢Δʯจ຺ ଞʹ΋͍Ζ͍Ζͳʮจ຺ʯ͕͋Δ

  86. ؔ਺߹੒Λந৅Խ͢Δͱ ੜ੒͞ΕΔؔ਺ʹ༷ʑͳ ੑ࣭Λ༩͑Δ͜ͱ͕Ͱ͖Δ ΋͔ͯ͠͠Ϟφʜʜ ҧ͍·͢

  87. ؔ਺͜Θ͘ͳ͍ ͜Θ͘ͳ͍

  88. ྫ ؔ਺߹੒Ͱ 'J[[#V[[

  89. DMBTT1SPD EFGPS G   Y \ SFTTFMG Y 

    SFTOJM  G Y SFT ^ FOE FOE ࣗ਎ʹYΛద༻ͨ݁͠Ռ͕OJMͳΒ͹ɺ߹੒͞Εͨؔ਺ΛݺͿ 3VCZ
  90. GJ[[ Y \Y GJ[[OJM^ CV[[ Y \Y CV[[OJM^ GJ[[CV[[ Y

    \ YY  GJ[[CV[[OJM^ JE Y \YUP@T^ GJ[[ CV[[ GJ[[CV[[ͱ਺ࣈΛग़ྗ͢Δؔ਺Λ༻ҙ 3VCZ
  91. NBQ   GJ[[CV[[PSGJ[[PSCV[[PSJE  ֤ؔ਺ΛPSͰ߹੒ͯ͠NBQ͢Ε͹GJ[[CV[[Ͱ͖Δ 3VCZ

  92. ͦͷଞͷ τϐοΫ

  93. wŋࢀরಁա wŋΧϦʔԽ wŋ෦෼ద༻ wŋ࠶ؼ wŋ৞ΈࠐΈؔ਺ wŋ୅਺σʔλߏ଄ ϞϊΠυͱ͔  ͜ͷ͋ͨΓͷ࿩΋ػձ͕͋ͬͨΒ

  94. ؔ਺͜Θ͘ͳ͍ ͜Θ͘ͳ͍