2020年11月9日 星期一

2020年8月12日 星期三

wifi 水上無人載具(2020公民營)

  • 日期:109.8.10~8.14, 8.17~8.21

http://www.yesio.net/utv.php?utno=18&pjno=6

  • Pin 腳 設定

https://drive.google.com/file/d/1erTLaUER6jFFf4VWZUI3pHtsmMlk2tIE/view

  • ioflex  URL (yesio 雲端平台)

http://ioflex.yesio.net/node/myDevices

使用範例程式 

#upload.py

# get mac address

import yesio.Cloud as cl

print(cl._wifi_get_mac())

  • os – basic “operating system” services

  • 繪圖軟體

Fusion

123D


陳富國 Fusion

https://drive.google.com/file/d/0ByS7PYyDiBW8V3ZZU0pFUlVFVVU/view

  • SG90 menu (servo motor)

https://www.taiwansensor.com.tw/product/sg90-tower-pro-1-8kg-%E6%89%AD%E5%8A%9B9%E5%85%8B%E8%88%B5%E6%A9%9F-%E4%BC%BA%E6%9C%8D%E9%A6%AC%E9%81%94%EF%BC%88%E5%8F%AF%E6%8E%A7%E8%A7%92%E5%BA%A6%EF%BC%89/

  • PWM,duty

http://www.1zlab.com/wiki/micropython-esp32/pwm/

  • humidity
https://docs.micropython.org/en/latest/esp8266/tutorial/dht.html
  •  bluetooth code

2020年7月30日 星期四

scipy

Multibody Dynamics and Control with Python | SciPy 2015 Tutorial | Jason Moore & James Crist

https://www.youtube.com/watch?v=mdo2NYtA-xY

2020年7月27日 星期一

How to change the selection item of win10, ubuntu

 https://justhodl.blogspot.com/2018/02/ubuntu-windows-windows-10-grub.html

sudo cat /boot/grub/grub.cfg | grep windows
Windows Boot Manager (位於 /dev/sda2)

sudo gedit /etc/default/grub

GRUB_DEFAULT="Windows Boot Manager (位於 /dev/sda2)"
#GRUB_DEFAULT=0



sudo update-grub
sudo update-initramfs -u -k all

2020年7月7日 星期二

福氣老師網站

三角形之中線長公式
http://sites.ccvs.kh.edu.tw/fuchi/doc/26231

random walk

https://www.geeksforgeeks.org/random-walk-implementation-python/

latex exam

http://www-math.mit.edu/~psh/exam/examdoc.pdf

 https://www.ptt.cc/bbs/LaTeX/M.1449629624.A.A05.html
 看板 LaTeX
%from above html
 \documentclass[12pt,b4paper]{exam}
\usepackage{fontspec} % 允許設定字體
\usepackage{amsmath,amsthm,amssymb}
\usepackage{xeCJK} % 分開設置中英文字型
 \setCJKmainfont{Kaiti TC} % 設定中文字型
%\setmainfont{Georgia} % 設定英文字型
%\setromanfont{Georgia} % 字型
%\setmonofont{Courier New}
\usepackage{Rvector}
\usepackage{stmaryrd}
\usepackage[left=1cm, right=1cm, bottom=1.9cm]{geometry}
\renewcommand\choicelabel{(\thechoice)} %將選擇題選項改成(A)....
\XeTeXlinebreaklocale "zh" % 針對中文自動換行
\XeTeXlinebreakskip = 0pt plus 1pt % 字與字之間加入0pt至1pt的間距,確保左右對整齊 %\parindent 0em  % 段落縮進
%\setlength{\parskip}{20pt} % 段落之間的距離
 \extrawidth{+0.6in}
 \pointsinmargin
\marginpointname{\%}

2020年6月21日 星期日

IFStile

https://ifstile.com/view/Main_Page

http://paulbourke.net/fractals/ifs/

monte carlo Ising model

Jon Emil Gudmundsson
https://notendur.hi.is/jeg1/Ising.pdf

https://towardsdatascience.com/monte-carlo-method-applied-on-a-2d-binary-alloy-using-an-ising-model-on-python-70afa03b172b

https://rajeshrinet.github.io/blog/2014/ising-model/

https://zhuanlan.zhihu.com/p/46638151

https://github.com/prtkm/ising-monte-carlo/blob/master/ising-monte-carlo.org

https://github.com/Patrick-Louden/Ising-Model

https://www.originlab.com/pdfs/origin_c_examples/isingmodel.pdf

http://physics.bu.edu/~py502/lectures5/mc.pdf

http://www.physics.rutgers.edu/~haule/681/src_MC/python_codes/ising.py

http://csc.ucdavis.edu/~chaos/courses/nlp/Projects2007/JimMa/2DIsingReport.pdf


European vanilla option pricing with C++ via Monte Carlo methods

https://www.quantstart.com/articles/European-vanilla-option-pricing-with-C-via-Monte-Carlo-methods/?fbclid=IwAR3nddJdMhQ1a5ZLzXdK_H36hf8fq1QiKr3Ij503C6L2wF2ezUVA2VPi6wU

chaos, entropy

David P. Feldman

ILYA NEMENMAN




research

https://www.santafe.edu/research/resources/library

Latex in html

https://blog.gtwang.org/web-development/mathjax-latex-mathml/

 http://cthsueh.blogspot.com/2016/01/latex-mathjax.html

How to incorporate TeX into a website?

 Equations in HTML (SVG + GIF)

 https://www.codecogs.com/latex/integration/htmlequations.php

 http://docs.mathjax.org/en/latest/input/tex/html.html 

 What is the best way to embed LaTeX in a webpage?

 

Lie group and Dynamical systems


https://mathoverflow.net/questions/60322/references-on-lie-groups-and-dynamical-systems/60391

2020年6月19日 星期五

圓的直徑式

求過直徑上兩點(1,2),(3,4)的圓方程式

1.圓心O=(2,3)
    r=sqrt( (3-2)^2+(4-2)^2)=sqrt(2)

   (x-2)^2+(y-3)^2=2

2. 向量法
半徑的圓周角=90度
(x-1,y-2).(x-3,y-4)=0
(x-1)(x-3)+(y-2)(y-4)=0 - 直徑式
x^2-4x+3+y^2-6y+8=0 - 一般式
(x-2)^2+(y-3)^2-1-1=0
(x-2)^2+(y-3)^2=2  - 標準式

圓的切線

C:(x-1)^2+(y-2)^2=4
A=(1,4)
B=(2,4)

1.過A求圓的切線(check A on C)
方法一.點到直線距離=r     ( d(O,L)=r )
 check A on C ?
 (1-1)^2+(4-2)^2=4, so   A on C
L: y-4=m(x-1)
    mx-y-m+4=0
 O=(1,2), r=2
d(O,L)=|m-2-m+4|/sqrt(m^2+1)=2
 2/sqrt(m^2+1)=2
2=2 * sqrt(m^2+1)
m=0
L: y-4=0

方法二. 直線的向量與半徑的向量內積為零     ( L.r=0  )
vector L=(x-1,y-4)
vector r=A-O=(0,2)
L.r=0

2(y-4)=0

y-4=0


2.過B(2,4)求圓的切線(check B doesn't on C)

方法一.點到直線距離=r     ( d(O,L)=r )

L: y-4=m(x-2)
    mx-y-2m+4=0
 O=(1,2), r=2
d(O,L)=|m-2-2m+4|/sqrt(m^2+1)=2
|-m+2|=2*sqrt(m^2+1)
m^2-4m+4=4(m^2+1)
3m^2+4m=0
m=0,-4/3
y-4=0
 or
y-4=-4/3(x-2)
4x+3y-8-12=0
4x+3y-20=0

方法二. 直線的單位法向量與半徑的向量內積=半徑     ( n.r=半徑  )
L: y-4=m(x-2)
    mx-y-2m+4=0
vector n=(m,-1)/sqrt(m^2+1)
vector r=(x-1,y-2)
n.r=2
 |m(x-1)-(y-2)|/sqrt(m^2+1)=2
 |mx-y-m+2|=2*sqrt(m^2+1)
|2m-4-m-2|=2*sqrt(m^2+1)
|m-2|^2=4(m^2+1)
m^2-4m+4=4m^2+4
3m^2+4m=0
m=0,-4/3

y-4=0
 or
y-4=-4/3(x-2)
4x+3y-8-12=0
4x+3y-20=0


python regression

https://towardsdatascience.com/machine-learning-polynomial-regression-with-python-5328e4e8a386

2020年6月17日 星期三

Geogebra 點/線與圓的關係

1.觀察點與圓的位置關係
h=1
k=2
r=2
(x-h)^2+(y-k)^2=r^2

A=(1,2)
B=(1,4)
C=(1,6)

2. 將圓心,半徑改為滑桿
h=slider(-5,5,.01)
k=slider(-5,5,.01)
r=slider(-5,5,.01)

(x-h)^2+(y-k)^2=r^2

A=(1,2)
B=(1,4)
C=(1,6)

個別點h, k, r 開始動畫,觀察圓的變化


3.圓上一點切線只有一條
m=slider(-5,5,.01)
y-4=m(x-1)
h=1
k=2
r=2
(x-h)^2+(y-k)^2=r^2

4.圓外一點切線只有一條
B=(2,4)
y-y(B)=m(x-x(B))
 m=slider(-5,5,.01)
h=1
k=2
r=2
(x-h)^2+(y-k)^2=r^2

5.用Excel 




python scraping

https://github.com/REMitchell/python-scraping/blob/master/Chapter01_BeginningToScrape.ipynb

2020年6月16日 星期二

python plot

[資料分析&機器學習] 第2.5講:資料視覺化(Matplotlib, Seaborn, Plotly)

https://medium.com/jameslearningnote/%E8%B3%87%E6%96%99%E5%88%86%E6%9E%90-%E6%A9%9F%E5%99%A8%E5%AD%B8%E7%BF%92-%E7%AC%AC2-5%E8%AC%9B-%E8%B3%87%E6%96%99%E8%A6%96%E8%A6%BA%E5%8C%96-matplotlib-seaborn-plotly-75cd353d6d3f

matplotlib
https://blog.techbridge.cc/2018/05/11/python-data-science-and-machine-learning-matplotlib-tutorial/

[第 18 天] 資料視覺化 matplotlib
https://ithelp.ithome.com.tw/articles/10186484

歷屆試題

109 c
7.
(x-4)^2/25+(y+2)^2/144=1 求頂點,正焦弦長

中心點O=(4,-2)
長軸a=12 on y axis
短軸b=5
頂點
O+(0,12)
O-(0,12)
O+(5,0)
O-(5,0)
焦距c=sqrt(a^2-b^2)
焦點O+(0,c)
焦點O+(0,-c)
正焦弦長 d=2b^2/a
 
10.
x+2y-6>=0
x+y-10<=0

2<=x<=9
求解的面積

x+2y-6=0
x|2 |9
-------------
y|2 |-3/2

x+y-10=0
x|2 |9
-------------
y|8 |1


11. 
f(x)=2cos(3x)-1 
a=f(x)與x軸的交點數
b=f(x) max
solve ab=?

-1<=cos3x<=1

-2-1<=cos3x-1<=2-1
-3<=cos3x-1<=1
b=f(x) max=1

cosx period= 2pi
cos3x period=2pi/3

13. 
f(x)=x^3-3x^2-24x+32 on [-3,3]
m=f(x) max, n=f(x) min, solve m-n=?




2020年6月8日 星期一

gvim delete

https://alvinalexander.com/linux/vi-vim-delete-line-commands-to-end/

reference table/ figure in Latex


https://alvinalexander.com/blog/post/latex/reference-figure-or-table-within-latex-document/

jabRef

https://www.youtube.com/watch?v=ywfRYb_TD4A

Resaerch Writing

https://www.youtube.com/watch?v=cMJWtNDqGzI

paper style


https://www.acm.org/publications/acm-latex-style-guide-3jan2017

https://www.ieee.org/conferences/publishing/templates.html

https://jarvus.dragonbeef.net/note/noteLatexIEEE.php

Biblatex + Mendeley
https://www.overleaf.com/latex/examples/biblatex-plus-mendeley/vvpqnkyhrync


Machine Learning

N. Rich Nguyen
https://www.cs.virginia.edu/~nn4pj/

install software in ubuntu

Latex
sudo apt-get install texlive-full

JabRef



octave
sudo apt-get install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo 
flatpak install flathub org.octave.Octave
flatpak run org.octave.Octave

https://ubuntuqa.com/zh-tw/article/9289.html

https://blog.gtwang.org/linux/ubuntu-compile-and-install-octave/


maxima
sudo apt-get install maxima

gvim
sudo apt-get install gvim

notepadqq


anocanda
https://docs.anaconda.com/anaconda/install/linux/

R


geogebra


wine


Line






Latex Theorems and Proof

https://www.overleaf.com/learn/latex/theorems_and_proofs

2020年6月2日 星期二

Chaos Theory and the Logistic Map
https://geoffboeing.com/2015/03/chaos-theory-logistic-map/

Plotting Butterfly Curve using Python

stackoverflow

Plotting Butterfly Curve using Python


python dynamic system

https://www.springer.com/gp/book/9783319781440

 2. Modelling Dynamical Systems
 https://gribblelab.org/compneuro2012/2_Modelling_Dynamical_Systems.html#orgheadline5

 Paul Gribble

Computational Modelling in Neuroscience

 https://gribblelab.org/compneuro2012/



algorithm

從LeetCode學演算法

https://ithelp.ithome.com.tw/users/20119871/ironman/2210

python climber


https://ithelp.ithome.com.tw/users/20112217/ironman/2095

播放軟體

K-Lite Mega Codec Pack
https://www.azofreeware.com/search?q=k-lite

Media Player Classic
https://briian.com/23716/

座標變換

https://www.itread01.com/content/1544879111.html

林信安 第5冊 2-2旋轉
http://math1.ck.tp.edu.tw/%E6%9E%97%E4%BF%A1%E5%AE%89/%E5%AD%B8%E8%A1%93%E7%A0%94%E7%A9%B6/%E4%B8%8A%E8%AA%B2%E8%AC%9B%E7%BE%A9/%E7%AC%AC%E4%BA%94%E5%86%8A/2-2%E6%97%8B%E8%BD%89.pdf

平面上基本的線性變換:旋轉、鏡射、伸縮、推移 (Linear Transformations on the Plane: Rotation, Reflection, Scaling, Shear)
臺北市立第一女子中學數學科蘇俊鴻老師

https://highscope.ch.ntu.edu.tw/wordpress/?p=51374

黃裕雄 octave 解線性變換
https://algobear.blogspot.com/search/label/%E7%9F%A9%E9%99%A3

2020年5月31日 星期日

STP

Lin Shen

Hong Saman

Padberg

1977 Hong and Padberg 用電腦處理318個城市的旅遊者問題(STP)

2020年5月14日 星期四

2020年5月13日 星期三

歷史電影

孔子

墨攻

司馬懿


數學電影

https://kknews.cc/zh-tw/news/l652nlb.html

1.死亡密碼
英文名稱:π

2.美麗心靈
英文名稱:A Beutiful Mind

3.心靈捕手
英文名稱:Good Will Hunting

4.費馬最後定理
英文名稱:Fermat's Last Theorem

5.笛卡兒
英文名稱:Decartes

6.牛頓探索
英文名稱:Newton's Dark Secrets

7.博士熱愛的算式
英文名稱:Hakase No Aishita Sushiki

8.阿基米德的秘密
英文名稱:Infinite Secrets: The Genius of Archimedes

9.伽利略:為真理而戰
英文名稱:Galileo's Battle For The Heavens

10.阿蘭·圖靈
英文名稱:Alan Turing

11.牛津殺手
英文名稱:The Oxford Murders

12.維度:數學漫步
英文名稱:Dimensions: a walk through mathematics

13.極限空間
英文名稱:La habitación de Fermat

14.測量世界
英文名稱:Die Vermessung der Welt

15.知無涯者
英文名稱:The Man Who Knew Infinity

16.城市廣場
英文名稱:Ágora

17.當幸福來敲門

2020年5月8日 星期五

gvim 環境設定

gvim environment

_vimrc in windows
.vimrc in linux

my set up
:set nu
:set wrap
:set textwidth=70
set guifont=DejaVu Sans Mono:h13


2020年4月26日 星期日

group theory

Simon R. Blackburn
Combinatorics  cryptography information theory group theory

https://scholar.google.co.uk/citations?user=PeQIxyoAAAAJ&amp;hl=en


Peter Neumann
Stanford University
Verified email at stanford.edu
neural plasticityensemblesaddictioncircuits
https://scholar.google.com/citations?user=mHNWKY4AAAAJ&amp;hl=en


Peter M. Neumann
https://scholar.google.com/scholar?q=%5B7%5D+Peter+M.+Neumann+D.+Phil.+Thesis+University+of+Oxford+1966


https://www.javatpoint.com/discrete-mathematics-normal-subgroup

師大 陳華介教授
http://math.ntnu.edu.tw/~li/algebra-html/node13.html
http://math.ntnu.edu.tw/~li/algebra-html/algebra.pdf

http://www2.chsh.chc.edu.tw/bee/108algebra/1080303.pdf

https://hackmd.io/@0xff07/ryQE2n3SI
https://hackmd.io/@0xff07/BJWaeWArL/https%3A%2F%2Fhackmd.io%2F%400xff07%2FByT4ldAS8

Sage
http://doc.sagemath.org/html/en/thematic_tutorials/group_theory.html#normal-subgroups

https://math.berkeley.edu/~apaulin/AbstractAlgebra.pdf

https://www.macs.hw.ac.uk/~jim/F13YR1/Notes.pdf

https://books.google.com.tw/books?id=4PWKDwAAQBAJ&pg=PA67&lpg=PA67&dq=normal+group+tutorial&source=bl&ots=T6sZfVNDyN&sig=ACfU3U3lTyA62FyKuvRxlEOjPSDDG9hRrA&hl=zh-TW&sa=X&ved=2ahUKEwjTgqD3gIfpAhU2yYsBHWKnD2sQ6AEwGHoECAwQAQ#v=onepage&q=normal%20group%20tutorial&f=false

https://www.jmilne.org/math/CourseNotes/GT.pdf

https://nathancarter.github.io/group-explorer/help/rf-groupterms/#simple-group

GAP
https://www.gap-system.org/Manuals/doc/tut/manual.pdf






2020年4月21日 星期二

微分應用


c IV 13 (3-4 微分應用) 109.4.21

3.2

f(x):=-x^2+6*x-8; has max or min?

g:diff(f(x));

solve(g);


4. f(x):=3*x-x^3; has max , min=?

g:diff(f(x));

solve(g);

f(1);

f(-1);


calculate

1. f(x)=3+4*x-x^2, 圖形, 遞增 遞減的區域

f(x):=3+4*x-x^2;

g:diff(f(x));

solve(g);


2. x+y=30, solve (xy)max=?

x,x-30

f(x):=x(x-30);

g:diff(f(x));

solve(g);


3.f(x)=2x^3+ax^2+bx+25 ,x=-3,x=2 has 

related extreme value, solve a,b=?

f(x):=2*x^3+a*x^2+b*x+25;

g:diff(f(x),x);



4. f(x)=5x^2+4x+1,x=a has fmin=b, solve 

a,b=?



2020年4月20日 星期一

分式

分式 4/21

使用geogebra 繪圖,觀察其變化
x
1/x (x的倒數, 反曲線)

x-1 (left shift 1) 左移1單位
1/(x-1)

x+1(right shift 1)右移1單位
1/(x+1)

x^2(拋物線)
1/x^2

(x-1)^2
1/(x-1)^2

(x+1)^2
1/(x+1)^2

x^2-2x+2 (常數項2 是y截距)
x^2+2x+2 (常數項2 是y截距)

ax^2+bx+c
ab<0 (右異)
ab>0 (左同)

頂點(-b/2a,(4ac-b^2)/4a)

1/(x^2+2x+2)

f(x)=x+1
g(x)=2x+1

f(x)+g(x)
f(x)-g(x)
f(x)g(x)
f(x)/g(x)
1/f(x)+1/g(x)

5x/(x^2-x-6)

max-min


https://www.mathsisfun.com/calculus/maxima-minima.html


maxima code

 http://maxima.sourceforge.net/docs/manual/maxima_18.html

geogebra differential


http://www.malinc.se/math/geogebra/coordinatesen.php

2020年4月8日 星期三

geogebra 分段函數


https://www.geogebra.org/m/H5QnUxY5

分段函數 求limit x->x(A)+,x(A)-

f(x)=if[x>=x(A),sin(x),(3x)/(x^2+x+1)]
B=(x(A),(3 x(A))/(x(A)^2+x(A)+1))
C=(x(A),sin(x(A)))
Limit(f(x),x,x(A))
Limit(f(x),x,x(A)+0.1)  #x->x(A)+
Limit(f(x),x,x(A)-0.1)  #x->x(A)-
Limit(f(x),x,x(A)+0.01)
Limit(f(x),x,x(A)-0.01)

2020年4月7日 星期二

error in python IDLE


解决ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 错误

python path in windows 10


http://www.weithenn.org/2018/05/python-journey-part01-install-python-on-windows10.html

使用系統管理者權限進行安裝,記得勾選「Add Python 3.6 to PATH」選項,如此一來便會在安裝程序中順便將 Python 環境寫入「環境變數」當中,稍後開啟命令提示字元便可以方便執行 python 相關指令。