2020年12月11日 星期五

ubuntu 無法開機

 http://ahhafree.blogspot.com/2019/04/ubuntu-boot-loader.html

 

解決Ubuntu,linux mint 無法登入(輸入正確使用者名稱和密碼仍跳回登入介面)

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

 

 

2020年12月7日 星期一

Newton's Binome Formula

Formule du Binome de Newton

Newton's Binome Formula
https://www.youtube.com/watch?v=QUMYiQtz4SE
 

 

2020年11月9日 星期一

Latex

 ShareLatex (on line)

https://www.sharelatex.com/

The Not So Short Introduction to LATEX 2ε 

http://tug.ctan.org/info/lshort/english/lshort.pdf


2020年10月20日 星期二

2020年8月11日 星期二

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日 星期二

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月24日 星期三

2020年6月23日 星期二

How to install requests


  • in windows
點windows圖示打入cmd
cmd (in dos command)
>py -m pip install --upgrade pip
>py -m pip install requests


  • in google colab
!pip install requests        #python2.*
!pip3 install requests2   #python3

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 




歷屆試題

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月15日 星期一

New connections between Dynamic Systems

Vasili Bernik - New connections between Dynamic Systems

Quantum Mechanics

Lecture 3 | Modern Physics: Quantum Mechanics (Stanford)

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

complete  lesson (Classical Mechanics)
https://www.youtube.com/view_play_list?p=189C0DCE90CB6D81

2020年6月9日 星期二

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






2020年6月3日 星期三

2020年6月2日 星期二

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

2020年5月31日 星期日

STP

Lin Shen

Hong Saman

Padberg

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

2020年5月27日 星期三

xwindow on wsl

Windows Subsystem for Linux (WSL) 使用 Linux 桌面軟體與中文字型

http://rocksaying.tw/archives/2018/wsl-run-linux-desktop-software.html

2020年5月23日 星期六

2020年5月21日 星期四

論文研究

學術文獻回顧與分析的程序與技巧

http://mhperng.blogspot.com/2011/04/literature-survey_18.html

清大彭明輝的部落格

http://mhperng.blogspot.com/

2020年5月19日 星期二

2020年5月14日 星期四

Linux和Windows共享資料夾

Linux和Windows共享文件的三種方法
https://kknews.cc/code/4qeok53.html

NFS伺服器與Samba伺服器有什麼區別?
https://kknews.cc/code/38kmkma.html

win10和Ubuntu18.04 desktop 設定共享資料夾

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

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


symbolic dynamic system book

An Introduction to Symbolic Dynamics and Coding

      by Douglas Lind and Brian Marcus

2020年5月3日 星期日

2020年4月30日 星期四

2020年4月26日 星期日

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)

2020年4月13日 星期一

Stochastic

https://ipython-books.github.io/131-simulating-a-discrete-time-markov-chain/


IPython Cookbook, Second EditionIPython Interactive Computing and Visualization Cookbook, Second Edition (2018), by Cyrille Rossant, contains over 100 hands-on recipes on high-performance numerical computing and data science in the Jupyter Notebook.
Most of the book is freely available on this website (CC-BY-NC-ND license).

2020年4月9日 星期四

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 相關指令。