Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Pythonと数学と 多面体とペーパークラフトとベルヌーイと長門屋と田宮模型と私
Search
Kimikazu Kato
October 08, 2018
1
1.7k
Pythonと数学と 多面体とペーパークラフトとベルヌーイと長門屋と田宮模型と私
2018年10月8日PyLadies Tokyo 4周年記念パーティでのLTです。
Kimikazu Kato
October 08, 2018
Tweet
Share
More Decks by Kimikazu Kato
See All by Kimikazu Kato
PyTorchの最近の動向
hamukazu
0
720
Python 3.11: What changed in math?
hamukazu
0
450
機械学習も筋肉が大事?意外と知らない数学
hamukazu
0
960
レコメンデーションシステムのキホン
hamukazu
4
890
機械学習の中身を理解する
hamukazu
28
10k
機械学習に役立つ数学
hamukazu
11
6.2k
Featured
See All Featured
Speed Design
sergeychernyshev
25
750
Automating Front-end Workflow
addyosmani
1367
200k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
11
890
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Rails Girls Zürich Keynote
gr2m
94
13k
Agile that works and the tools we love
rasmusluckow
328
21k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.3k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.5k
Transcript
Pythonͱֶͱ ଟ໘ମͱϖʔύʔΫϥϑτ ͱϕϧψʔΠͱͱాٶܕͱࢲ Ճ౻ެҰ @hamukazu 201810݄8 PyLadiesTokyo4पه೦ύʔςΟ
ࣗݾհ Ճ౻ެҰʢ͖Έ͔ͣʣ Twitter: @hamukazu • ֶΤόϯδΣϦετ • ےτϨܯ • ϏʔϧΫζ
࠷ۙຊग़ͨ͠Αʂ ങͬͯͶ— http://bit.ly/mlessence
• ਖ਼ेೋ໘ମͷݟऔΓਤΛඳ͖ͳ͍͞ • ਖ਼ेೋ໘ମͷɺลɺ໘ͷΛͦΕͧΕ͑ͳ͍͞
ղ ུ
͔֬ΊΔํ๏ ࣮Λ࡞Δ
ଟ໘ମϖʔύʔΫϥϑτ • 2017ʹΓ࢝ΊͨʢϒϩάͰൃදʣ • ࡞ϓϩάϥϜΛΦʔϓϯιʔεͰެ։ • ࠷ॳਖ਼ଟ໘ମ • 2018PyConJP SprintsͰਖ਼ଟ໘ମʢ४ਖ਼ଟ໘ମʣ
https://github.com/hamukazu/craft_regpolyhed https://github.com/hamukazu/craft_truncated
ྫ ਖ਼ेೋ໘ମ ਖ਼ೋे໘ମ
ਖ਼ೋे໘ମ ྫ ʢ2ͭ߹Θͤͯ1ͭͷཱମʣ
Ͳ͏ͬͯ࡞Δ͔ • ݴޠͪΖΜPython • Reportlabͱ͍͏ϥΠϒϥϦ • ͋ͱֶతܭࢉʢϕΫτϧܭࢉͱճసߦྻʣ • ࣗಈඳը͢ΔΞϧΰϦζϜΛ࡞ͬͨͷͰͳ͘ɺҰͭҰͭ ઢΛҾ͘ϓϩάϥϜΛॻ͍ͨ
ReportLab PythonͰPDFϑΝΠϧΛฤूͰ͖ΔϥΠϒϥϦ اۀ͕͍ͬͯΔΦʔϓϯιʔε ReportLabϥΠϒϥϦ໊͔ͭاۀ໊
ֶతܭࢉ ✓ cos ✓ sin ✓ sin ✓ cos ✓
◆ ✓ x y ◆ = ✓ x cos ✓ y sin ✓ x sin ✓ + y cos ✓ ◆ (x,y)ΛݪΛத৺ʹθճసͤͨ͞ΛٻΊΔ ඞཁͳܭࢉ͜ΕͱɺϕΫτϧجຊܭࢉʢɾࠩɾεΧϥʔഒʣ͚ͩ
ਖ਼ޒ֯ܗͷඳ͖ํ 108° 72° A1 A2 A3 − → OA3 =
− → OA2 + − − − → A2A3 = − → OA2 + cos 72◦ − sin 72◦ sin 72◦ cos 72◦ − − − → A1A2 ͜ΕΛ܁ΓฦͤΑ͍
࣍ʹఔ
ඞཁͳͷ φ-022 ʢಛްޱʣ ϓϥε͞Έ ϑΟοτΧʔϒ ϓϨϛΞϜνλϯ ʢϕϧψʔΠۂઢʣ λϛϠ ΫϥϑτϘϯυ
ϕϧψʔΠۂઢ Ωλʔʂ
ఆٛʢϕϧψʔΠۂઢʣ ฏ໘ͷۃ࠲ඪදࣔɹɹɹʹରͯ͠ Ͱද͞ΕΔۂઢΛϕϧψʔΠۂઢͱݺͿ ఆཧ ݪ͔Βग़ΔઢͱϕϧψʔΠۂઢͷͳ֯͢ҰఆͰ͋Δ r = aebθ ূ໌ ಡऀͷԋशͱ͢Δ
(r, θ)
࡞Γํͷίπ • ંΓఆنΛͬͯંΔ • ͘Β͍ΈཱͯͯͨΒҰணࡎΛס͔ͯ͠ݻఆ͢Δ • ͷΓ͠Ζ͕ͳ͍໘͕͋ΔͷͰͦΕΛ࠷ޙʹด͡Δ
TODO • ϦϑΝΫλϦϯάͯ͠ύοέʔδԽ • pip install͍ͨ͠ΑͶʁ • ࡞ΓํͷίπͷυΩϡϝϯτӳ༁ͯ͠ެ։