init: init commit for all files
19
.github/workflows/algolia.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: ❤️ Generate Algolia serach indicies in JSON & push to Algolia
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
algolia:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: 🐳 Generate the content of algolia.json as config
|
||||
id: algolia_config
|
||||
run: echo "config=$(cat crawlerConfig.json | jq -r tostring)" >> $GITHUB_OUTPUT
|
||||
- name: 🥙 Push indices to Algolia
|
||||
uses: signcl/docsearch-scraper-action@master
|
||||
env:
|
||||
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
|
||||
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
|
||||
CONFIG: ${{ steps.algolia_config.outputs.config }}
|
||||
34
.github/workflows/publish.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: ✅ Build and Deploy Vitepress Doc Pages to GitHub Pages
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
pages: write
|
||||
id-token: write
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: yarn
|
||||
- name: ⚒️ Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
- name: ☕ Build dtatic pages
|
||||
run: yarn docs:build
|
||||
- uses: actions/configure-pages@v2
|
||||
- uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
path: docs/.vitepress/dist
|
||||
- name: 🪗 Deploy to GitHub pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v1
|
||||
112
.gitignore
vendored
Normal file
@ -0,0 +1,112 @@
|
||||
### OSX ###
|
||||
# General
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear in the root of a volume
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
.com.apple.timemachine.donotpresent
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
### Node ###
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# TypeScript v1 declaration files
|
||||
typings/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# pnpm link folder
|
||||
pnpm-global
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
cache
|
||||
|
||||
# rollup.js default build output
|
||||
dist/
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# Temporary folders
|
||||
tmp/
|
||||
temp/
|
||||
TODOs.md
|
||||
src/api/index.json
|
||||
src/examples/data.json
|
||||
src/tutorial/data.json
|
||||
draft.md
|
||||
4
.husky/commit-msg
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npx --no -- commitlint --edit ${1}
|
||||
3
.husky/pre-commit
Normal file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
yarn lint
|
||||
3
.prettierignore
Normal file
@ -0,0 +1,3 @@
|
||||
# cache
|
||||
cache
|
||||
dist
|
||||
2
README.md
Normal file
@ -0,0 +1,2 @@
|
||||
# Toshiki's Notebook
|
||||
> Toshiki's web notebook built upon Vitepress and deployed via Vercel!"
|
||||
5600
assets/logo/ai/toshiki-notebook-hero-logo-v1.ai
Normal file
BIN
assets/logo/png/toshiki-notebook-hero-logo-v1.png
Normal file
|
After Width: | Height: | Size: 540 KiB |
13
config.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"index_name": "toshiki-note",
|
||||
"start_urls": ["https://note.toshiki.dev/"],
|
||||
"selectors": {
|
||||
"lvl0": "",
|
||||
"lvl1": ".content h1",
|
||||
"lvl2": ".content h2",
|
||||
"lvl3": ".content h3",
|
||||
"lvl4": ".content h4",
|
||||
"lvl5": ".content h5",
|
||||
"content": ".content p, .content li"
|
||||
}
|
||||
}
|
||||
28
crawlerConfig.json
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"index_name": "",
|
||||
"start_urls": ["https://note.toshiki.dev/"],
|
||||
"rateLimit": 8,
|
||||
"maxDepth": 10,
|
||||
"selectors": {
|
||||
"lvl0": {
|
||||
"selector": "",
|
||||
"defaultValue": "Documentation"
|
||||
},
|
||||
"lvl1": ".content h1",
|
||||
"lvl2": ".content h2",
|
||||
"lvl3": ".content h3",
|
||||
"lvl4": ".content h4",
|
||||
"lvl5": ".content h5",
|
||||
"content": ".content p, .content li",
|
||||
"lang": {
|
||||
"selector": "/html/@lang",
|
||||
"type": "xpath",
|
||||
"global": true
|
||||
}
|
||||
},
|
||||
"selectors_exclude": ["aside", ".page-footer", ".next-and-prev-link", ".table-of-contents"],
|
||||
"custom_settings": {
|
||||
"attributesForFaceting": ["lang", "tags"]
|
||||
},
|
||||
"js_render": true
|
||||
}
|
||||
32
docs/.vitepress/config.ts
Normal file
@ -0,0 +1,32 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
import { customElements } from './config/customElements'
|
||||
import { markdown } from './config/markdown'
|
||||
import { metaData } from './config/constants'
|
||||
import { head } from './config/head'
|
||||
import { themeConfig } from './config/theme'
|
||||
import { generateSitemap as sitemap } from 'sitemap-ts'
|
||||
|
||||
export default defineConfig({
|
||||
lang: metaData.lang, // i18n default english translation
|
||||
title: metaData.title, // title from metadata config
|
||||
description: metaData.description, // description from metadata config
|
||||
markdown: markdown, // markdown config
|
||||
lastUpdated: true, // whether enabling lastupdated or not
|
||||
head, // documentation head tag options
|
||||
themeConfig, // default exported theme config
|
||||
cleanUrls: true, // clean urls configs to remove standard genreated page file type extensions
|
||||
outDir: '../dist', // specify staic pages build output dir
|
||||
// vue template options for preventing katex build crashes
|
||||
vue: {
|
||||
template: {
|
||||
compilerOptions: {
|
||||
isCustomElement: tag => customElements.includes(tag),
|
||||
},
|
||||
},
|
||||
},
|
||||
async buildEnd() {
|
||||
await sitemap({ hostname: 'https://note.toshiki.dev/' })
|
||||
},
|
||||
})
|
||||
|
||||
customElements // custom element tags of markdown-it-katex in vitepress
|
||||
13
docs/.vitepress/config/constants.ts
Normal file
@ -0,0 +1,13 @@
|
||||
// define global site url
|
||||
const site = 'https://note.toshiki.dev'
|
||||
|
||||
// site metadatas with exports in use of global config
|
||||
export const metaData = {
|
||||
lang: 'en',
|
||||
locale: 'en',
|
||||
title: "Toshiki's Note",
|
||||
description: "Toshiki's web notebook served via Vitepress!",
|
||||
site,
|
||||
// site head metatag open graph cover image
|
||||
image: `${site}/og-cover.png`,
|
||||
}
|
||||
87
docs/.vitepress/config/customElements.ts
Normal file
@ -0,0 +1,87 @@
|
||||
export const customElements: string[] = [
|
||||
'math',
|
||||
'maction',
|
||||
'maligngroup',
|
||||
'malignmark',
|
||||
'menclose',
|
||||
'merror',
|
||||
'mfenced',
|
||||
'mfrac',
|
||||
'mi',
|
||||
'mlongdiv',
|
||||
'mmultiscripts',
|
||||
'mn',
|
||||
'mo',
|
||||
'mover',
|
||||
'mpadded',
|
||||
'mphantom',
|
||||
'mroot',
|
||||
'mrow',
|
||||
'ms',
|
||||
'mscarries',
|
||||
'mscarry',
|
||||
'mscarries',
|
||||
'msgroup',
|
||||
'mstack',
|
||||
'mlongdiv',
|
||||
'msline',
|
||||
'mstack',
|
||||
'mspace',
|
||||
'msqrt',
|
||||
'msrow',
|
||||
'mstack',
|
||||
'mstack',
|
||||
'mstyle',
|
||||
'msub',
|
||||
'msup',
|
||||
'msubsup',
|
||||
'mtable',
|
||||
'mtd',
|
||||
'mtext',
|
||||
'mtr',
|
||||
'munder',
|
||||
'munderover',
|
||||
'semantics',
|
||||
'math',
|
||||
'mi',
|
||||
'mn',
|
||||
'mo',
|
||||
'ms',
|
||||
'mspace',
|
||||
'mtext',
|
||||
'menclose',
|
||||
'merror',
|
||||
'mfenced',
|
||||
'mfrac',
|
||||
'mpadded',
|
||||
'mphantom',
|
||||
'mroot',
|
||||
'mrow',
|
||||
'msqrt',
|
||||
'mstyle',
|
||||
'mmultiscripts',
|
||||
'mover',
|
||||
'mprescripts',
|
||||
'msub',
|
||||
'msubsup',
|
||||
'msup',
|
||||
'munder',
|
||||
'munderover',
|
||||
'none',
|
||||
'maligngroup',
|
||||
'malignmark',
|
||||
'mtable',
|
||||
'mtd',
|
||||
'mtr',
|
||||
'mlongdiv',
|
||||
'mscarries',
|
||||
'mscarry',
|
||||
'msgroup',
|
||||
'msline',
|
||||
'msrow',
|
||||
'mstack',
|
||||
'maction',
|
||||
'semantics',
|
||||
'annotation',
|
||||
'annotation-xml',
|
||||
]
|
||||
6
docs/.vitepress/config/footer.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { DefaultTheme } from 'vitepress/theme'
|
||||
|
||||
export const footer: DefaultTheme.Config['footer'] = {
|
||||
message: `Wrote with <i class="heart fa fa-heart fa-xs fa-beat"></i> and ☕ by <a href="https://toshiki.dev">Anda Toshiki</a> at <code>root@andatoshiki:/~</code> <i class="fa fa-clock fa-xs fa-beat"></i>`,
|
||||
copyright: `Copyright © 2023-${new Date().getFullYear()} <a href="https://github.com/andatoshiki">Anda Toshiki</a> \n <span id="runtime_span"></span>`,
|
||||
}
|
||||
51
docs/.vitepress/config/head.ts
Normal file
@ -0,0 +1,51 @@
|
||||
import type { HeadConfig } from 'vitepress'
|
||||
import { metaData } from './constants'
|
||||
|
||||
export const head: HeadConfig[] = [
|
||||
// stylesheets loaded from thrid-party cdns
|
||||
['link', { rel: 'stylesheet', href: 'https://cdnjs.toshiki.dev/ajax/libs/KaTeX/0.16.0/katex.min.css' }],
|
||||
['link', { rel: 'stylesheet', href: 'https://cdnjs.toshiki.dev/ajax/libs/font-awesome/6.3.0/css/all.min.css' }],
|
||||
|
||||
['link', { rel: 'icon', href: '/favicon.ico' }],
|
||||
['meta', { name: 'author', content: 'Anda Toshiki' }],
|
||||
[
|
||||
'meta',
|
||||
{
|
||||
name: 'keywords',
|
||||
content:
|
||||
'Toshiki, Anda Toshiki, andatoshiki, GitHub, GitHub action, Vitepress, Vite, Notebook, Knowledge base, Programming, Programming Notes, Academic, Personal, Notebook, Productivity, Journal, Note-taking, Markdown, Notepad, Organization, Tutorial',
|
||||
},
|
||||
],
|
||||
|
||||
['meta', { name: 'HandheldFriendly', content: 'True' }],
|
||||
['meta', { name: 'MobileOptimized', content: '320' }],
|
||||
['meta', { name: 'theme-color', content: '#3c8772' }],
|
||||
|
||||
['meta', { property: 'og:type', content: 'website' }],
|
||||
['meta', { property: 'og:locale', content: metaData.locale }],
|
||||
['meta', { property: 'og:title', content: metaData.title }],
|
||||
['meta', { property: 'og:description', content: metaData.description }],
|
||||
['meta', { property: 'og:site', content: metaData.site }],
|
||||
['meta', { property: 'og:site_name', content: metaData.title }],
|
||||
['meta', { property: 'og:image', content: metaData.image }],
|
||||
|
||||
// site runtime/runtime & print the countdown in html
|
||||
// migrated to CustomLayout.vue as a global/standalone scrirpt module for load of all site pages
|
||||
[
|
||||
'script',
|
||||
{},
|
||||
`function show_runtime() {window.setTimeout("show_runtime()", 1000); X = new Date("8/24/2021 10:28:00"); Y = new Date(); T = (Y.getTime() - X.getTime()); M = 24 * 60 * 60 * 1000; a = T / M; A = Math.floor(a); b = (a - A) * 24; B = Math.floor(b); c = (b - B) * 60; C = Math.floor((b - B) * 60); D = Math.floor((c - C) * 60); runtime_span.innerHTML = "本小站已苟延残喘: " + A + "天" + B + "小时" + C + "分" + D + "秒" }show_runtime();
|
||||
`,
|
||||
],
|
||||
|
||||
// self-hosted umami instance for website analytics tracking
|
||||
[
|
||||
'script',
|
||||
{
|
||||
async: 'true',
|
||||
defer: 'true',
|
||||
'data-website-id': '86de8554-d4c9-4f2b-b62a-068b71241048',
|
||||
src: 'https://umami.toshiki.dev/umami.js',
|
||||
},
|
||||
],
|
||||
]
|
||||
14
docs/.vitepress/config/markdown.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import type { MarkdownOptions } from 'vitepress'
|
||||
import mdkatex from '@andatoshiki/markdown-it-katex'
|
||||
|
||||
export const markdown: MarkdownOptions = {
|
||||
theme: {
|
||||
light: 'one-dark-pro',
|
||||
dark: 'material-theme-palenight',
|
||||
},
|
||||
lineNumbers: true,
|
||||
config: md => {
|
||||
// use more markdown-it plugins!
|
||||
md.use(mdkatex)
|
||||
},
|
||||
}
|
||||
26
docs/.vitepress/config/nav.ts
Normal file
@ -0,0 +1,26 @@
|
||||
import { DefaultTheme } from 'vitepress/theme'
|
||||
|
||||
export const nav: DefaultTheme.Config['nav'] = [
|
||||
{
|
||||
text: '📚 Academic',
|
||||
items: [
|
||||
{ text: '🧪 Chemistry', link: '/academic/chemistry/index', activeMatch: '/academic/chemistry/' },
|
||||
{ text: '✍️ Literature', link: '/academic/literature/index', activeMatch: '/academic/literature/' },
|
||||
{ text: '', link: '', activeMatch: '' },
|
||||
{ text: '🧮 Discrete Math.', link: '/discrete-math/index', activeMatch: '/categories/fragments/' },
|
||||
{ text: '🥠 Vocabulary', link: '/academic/vocabulary/index', activeMatch: '/academic/vocabulary/' },
|
||||
{ text: '', link: '', activeMatch: '' },
|
||||
{ text: '', link: '', activeMatch: '' },
|
||||
{ text: '', link: '', activeMatch: '' },
|
||||
{ text: '', link: '', activeMatch: '' },
|
||||
{ text: '', link: '', activeMatch: '' },
|
||||
{ text: '', link: '', activeMatch: '' },
|
||||
],
|
||||
activeMatch: '/academic/',
|
||||
},
|
||||
{
|
||||
text: '💾 Save',
|
||||
items: [{ text: '📰 Reading', link: '/save/reading/index', activeMatch: '/save/reading/' }],
|
||||
activeMatch: '/courses/',
|
||||
},
|
||||
]
|
||||
104
docs/.vitepress/config/sidebar.ts
Normal file
@ -0,0 +1,104 @@
|
||||
import { DefaultTheme } from 'vitepress/theme'
|
||||
|
||||
export const sidebar: DefaultTheme.Config['sidebar'] = {
|
||||
// sidebar configs for academic realted documents
|
||||
// chemistry
|
||||
'/academic/chemistry/': [
|
||||
{
|
||||
text: 'Notes',
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: '12-5: Reaction Mechanism', link: '/academic/chemistry/notes/12-5' },
|
||||
{ text: '', link: '' },
|
||||
{ text: '', link: '' },
|
||||
{ text: '', link: '' },
|
||||
{ text: '', link: '' },
|
||||
{ text: '', link: '' },
|
||||
{ text: '', link: '' },
|
||||
{ text: '', link: '' },
|
||||
],
|
||||
},
|
||||
{
|
||||
text: 'Presentation Problems',
|
||||
collapsed: true,
|
||||
items: [{ text: 'Presentation Problem 2-20', link: '/academic/chemistry/presentation-problems/pp-2-20' }],
|
||||
},
|
||||
],
|
||||
// chemistry sidebar end
|
||||
|
||||
'/academic/physics': [
|
||||
{
|
||||
text: 'IPhO Formulas: JP Ver.',
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: '1: 数学', link: '/academic/physics/ipho-formulas-jpn/1' },
|
||||
{ text: '2: 一般的な推奨事', link: '/academic/physics/ipho-formulas-jpn/2' },
|
||||
{ text: '3: 運動学', link: '/academic/physics/ipho-formulas-jpn/3' },
|
||||
{ text: '4: 力学', link: '/academic/physics/ipho-formulas-jpn/4' },
|
||||
{ text: '5: 振動と波', link: '/academic/physics/ipho-formulas-jpn/5' },
|
||||
{ text: '6: 幾何光学,測光', link: '/academic/physics/ipho-formulas-jpn/6' },
|
||||
{ text: '7: 波動光学', link: '/academic/physics/ipho-formulas-jpn/7' },
|
||||
{ text: '8: 電気回路', link: '/academic/physics/ipho-formulas-jpn/8' },
|
||||
{ text: '9: 電磁気学', link: '/academic/physics/ipho-formulas-jpn/9' },
|
||||
{ text: '10: 熱力', link: '/academic/physics/ipho-formulas-jpn/10' },
|
||||
{ text: '11: 量子力学', link: '/academic/physics/ipho-formulas-jpn/11' },
|
||||
{ text: '12: Keplerの法則', link: '/academic/physics/ipho-formulas-jpn/12' },
|
||||
{ text: '13: 相対性理論', link: '/academic/physics/ipho-formulas-jpn/13' },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
// vocabulary
|
||||
'/academic/vocabulary/': [
|
||||
{
|
||||
text: 'Vocabulary',
|
||||
collapsed: true,
|
||||
items: [{ text: '2023-02-27', link: '/academic/vocabulary/2023/02/2023-02-27' }],
|
||||
},
|
||||
],
|
||||
// vocabulary sidebar end
|
||||
|
||||
// literature
|
||||
'/academic/literature/': [
|
||||
{
|
||||
text: 'Writing Resources',
|
||||
collapsed: true,
|
||||
items: [
|
||||
// for writing resoures directory
|
||||
{
|
||||
text: 'Patterns of Organization and Methods of Development',
|
||||
link: '/academic/literature/writing/methods-of-development',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
'/javascript/': [
|
||||
{
|
||||
text: '1: Basic JavaScript-Value, Variables, and Control Flow',
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: '1-1: Numbers', link: '/javascript/notes/1/1-1' },
|
||||
{ text: '', link: '' },
|
||||
{ text: '', link: '' },
|
||||
{ text: '', link: '' },
|
||||
{ text: '', link: '' },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
'/save/reading/': [
|
||||
{
|
||||
text: 'Outliers',
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: 'Introduction & Chapter 1: The Roseto Mystery', link: '/save/reading/outliers/1' },
|
||||
{ text: 'Chapter 2: The 10,000-Hour Rule', link: '/save/reading/outliers/2' },
|
||||
{ text: 'Chapter 3: The Trouble with Geniuses, Part 1', link: '/save/reading/outliers/3' },
|
||||
{ text: 'Chapter 4: The Trouble with Geniuses, Part 2', link: '/save/reading/outliers/4' },
|
||||
// { text: 'Chapter 5: ', link: '/save/reading/outliers/5' },
|
||||
// { text: 'Chapter 6: ', link: '/save/reading/outliers/6' },
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
43
docs/.vitepress/config/theme.ts
Normal file
@ -0,0 +1,43 @@
|
||||
import { DefaultTheme } from 'vitepress/theme'
|
||||
import { nav } from './nav'
|
||||
import { sidebar } from './sidebar'
|
||||
import { footer } from './footer'
|
||||
|
||||
export const themeConfig: DefaultTheme.Config = {
|
||||
nav, // documentation navigation bar config
|
||||
sidebar, // cocumentation sidebar config
|
||||
footer, // site global footer config
|
||||
|
||||
logo: '/logos/logo.png',
|
||||
outline: 'deep', // documentation outline header precedence
|
||||
outlineTitle: 'TOC', // documentation outline title text
|
||||
outlineBadges: false, // whether to show badge on outline
|
||||
lastUpdatedText: 'Last updated', // config for last updated footer text
|
||||
// documentation full text search config via algolia
|
||||
algolia: {
|
||||
appId: 'G9IUR45K98',
|
||||
apiKey: '8528cc91281d8112b28f508317a96dd3',
|
||||
indexName: 'toshiki-note',
|
||||
},
|
||||
// documentation edit link
|
||||
editLink: {
|
||||
pattern: 'https://github.com/andatoshiki/toshiki-note/edit/master/docs/:path',
|
||||
text: 'Edit this page on GitHub',
|
||||
},
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com/andatoshiki' },
|
||||
{ icon: 'twitter', link: 'https://twitter.com/andatoshiki' },
|
||||
],
|
||||
|
||||
// custom vue components
|
||||
// @ts-ignore
|
||||
// surpress errors originated from the lines below of custom coponent configs in typescript
|
||||
// footerConfig: {
|
||||
// showFooter: true, // 是否显示页脚
|
||||
// icpRecordCode: '津ICP备2022005864号-2', // ICP备案号
|
||||
// publicSecurityRecordCode: '津公网安备12011202000677号', // 联网备案号
|
||||
// copyright: `Copyright © 2019-${new Date().getFullYear()} Charles7c`, // 版权信息
|
||||
// siteRunTime: true,
|
||||
// },
|
||||
}
|
||||
4
docs/.vitepress/theme/CustomLayout.vue
Normal file
@ -0,0 +1,4 @@
|
||||
<!-- migrated to .vitepress/theme/index.ts config file with custom slots -->
|
||||
<template></template>
|
||||
<script lang="ts" setup></script>
|
||||
<style scoped></style>
|
||||
22
docs/.vitepress/theme/components/AsideSponsors.vue
Normal file
@ -0,0 +1,22 @@
|
||||
<script setup lang="ts">
|
||||
import { VPDocAsideSponsors } from 'vitepress/theme'
|
||||
|
||||
const data = [
|
||||
{
|
||||
items: [{ img: 'https://cdn.jsdelivr.net/gh/maomao1996/picture/sponsor/wechat-color.jpg' }],
|
||||
},
|
||||
{
|
||||
items: [{ img: 'https://cdn.jsdelivr.net/gh/maomao1996/picture/sponsor/alipay-color.jpg' }],
|
||||
},
|
||||
]
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VPDocAsideSponsors :data="data" />
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.vp-sponsor-grid.medium .vp-sponsor-grid-image {
|
||||
max-height: 90px;
|
||||
}
|
||||
</style>
|
||||
136
docs/.vitepress/theme/components/Copyright.vue
Normal file
@ -0,0 +1,136 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { useData } from 'vitepress'
|
||||
|
||||
const defaultAuthor = 'Anda Toshiki (安田俊樹)'
|
||||
const { frontmatter } = useData()
|
||||
|
||||
const author = ref(defaultAuthor)
|
||||
|
||||
if (frontmatter.value?.author) author.value = frontmatter.value?.author
|
||||
|
||||
// const reName = (name: string) => (name === 'Anda Toshiki' ? 'andatoshiki' : name)
|
||||
|
||||
const pageHref = location.href
|
||||
|
||||
const homepageLink = `https://www.toshiki.dev`
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ClientOnly>
|
||||
<!-- start of the document bottom copyright div block -->
|
||||
<div class="copyright">
|
||||
<!-- copyright & author line -->
|
||||
<div class="content">
|
||||
<div class="item">
|
||||
<svg class="icon" width="20" height="20" viewBox="0 0 1024 1024">
|
||||
<!-- this title is for the svg's alt for preventing misconception with the span tag on copyright below under this div -->
|
||||
<title>original author</title>
|
||||
<path
|
||||
d="M614.72 554.538c-49.086-6.399-100.27-2.1-149.256-2.1-119.465 0-209.04 95.972-206.84 215.437 0 17.095 8.498 31.99 23.493 40.488 14.896 10.697 34.09 14.896 53.285 17.095 61.882 6.398 123.664 6.398 198.342 6.398 40.488 0 93.872-2.1 142.858-4.298 27.692 0 53.284-4.3 78.877-14.896 19.194-8.498 29.89-19.194 31.99-40.488 8.498-104.57-72.478-204.84-172.75-217.636zM680.8 375.39c0-87.474-74.678-162.053-164.251-162.053-89.574 0-162.053 74.679-162.053 162.053-2.1 87.474 74.678 164.252 162.053 164.252 89.673 0 164.252-74.678 164.252-164.252z"
|
||||
fill="#FFF"
|
||||
></path>
|
||||
<path
|
||||
d="M512.35 0C228.733 0 .5 228.233.5 511.85s228.233 511.85 511.85 511.85 511.85-228.233 511.85-511.85S795.967 0 512.35 0zm275.12 772.074c-2.1 21.294-12.797 31.99-31.991 40.488-25.593 10.697-51.185 14.896-78.877 14.896-49.086 2.099-102.37 4.298-142.858 4.298-74.678 0-136.46 0-198.342-6.398-19.195-2.1-38.389-6.398-53.285-17.095-14.895-8.497-23.493-23.493-23.493-40.488-2.1-119.465 87.475-215.437 206.84-215.437 49.085 0 100.27-4.299 149.256 2.1 100.27 12.896 181.247 113.166 172.75 217.636zM354.495 375.39c0-87.474 72.479-162.053 162.053-162.053S680.8 288.016 680.8 375.39c0 89.574-74.679 164.252-164.252 164.252-87.375 0-164.152-76.778-162.053-164.252z"
|
||||
fill="#249FF8"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="copyrightText">Author: </span>
|
||||
<span>
|
||||
<a :href="homepageLink" rel="noreferrer" target="_blank">
|
||||
{{ author }}
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<!-- copyright & author line ends -->
|
||||
<!-- documentation original link starts -->
|
||||
<div class="item">
|
||||
<svg class="icon" width="20" height="20" viewBox="0 0 1024 1024">
|
||||
<!-- this title the svg title of the original link line -->
|
||||
<title>Original Link</title>
|
||||
<path
|
||||
d="M511.854 0A511.854 511.854 0 1 0 1024 511.854 511.854 511.854 0 0 0 511.854 0z"
|
||||
fill="#39B54A"
|
||||
></path>
|
||||
<path
|
||||
d="M576.491 630.355L460.028 746.818a129.565 129.565 0 0 1-182.555 0l-2.038-2.038a128.983 128.983 0 0 1 0-182.264l81.233-81.233a179.644 179.644 0 0 0 13.102 70.46l-52.7 52.408a69.878 69.878 0 0 0 0 98.703l2.038 2.038a70.169 70.169 0 0 0 98.703 0l116.463-116.463a69.878 69.878 0 0 0 0-98.703l-2.039-2.038a69.587 69.587 0 0 0-13.975-10.772l42.509-42.51a128.11 128.11 0 0 1 13.102 11.356l2.038 2.038a129.274 129.274 0 0 1 0 182.264z"
|
||||
fill="#FFF"
|
||||
></path>
|
||||
<path
|
||||
d="M746.236 460.902l-81.233 81.233a179.353 179.353 0 0 0-13.102-70.46l52.7-52.409a69.878 69.878 0 0 0 0-98.702l-2.039-2.038a69.878 69.878 0 0 0-98.702 0L487.397 434.989a69.878 69.878 0 0 0 0 98.702l2.038 2.038a68.422 68.422 0 0 0 13.976 10.773l-42.51 42.51a136.553 136.553 0 0 1-13.101-11.356l-2.038-2.038a128.983 128.983 0 0 1 0-182.265l116.463-116.462a129.565 129.565 0 0 1 182.555 0l2.038 2.038a128.983 128.983 0 0 1 0 182.264z"
|
||||
fill="#FFF"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="copyrightText">Link: </span>
|
||||
<span>
|
||||
<a :href="pageHref" rel="noreferrer" target="_blank">
|
||||
{{ pageHref }}
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<!-- documentation original link ends -->
|
||||
<div class="item">
|
||||
<!-- svg icon for documentation license list line starts -->
|
||||
<svg class="icon" width="20" height="20" viewBox="0 0 1024 1024">
|
||||
<title>documentation license</title>
|
||||
<path d="M0 512a512 512 0 1 0 1024 0A512 512 0 1 0 0 512z" fill="#F3B243"></path>
|
||||
<path
|
||||
d="M540.672 323.584a90.112 90.112 0 1 0 180.224 0 90.112 90.112 0 1 0-180.224 0zM540.672 688.128a90.112 90.112 0 1 0 180.224 0 90.112 90.112 0 1 0-180.224 0zM229.376 512a90.112 90.112 0 1 0 180.224 0 90.112 90.112 0 1 0-180.224 0z"
|
||||
fill="#FFF"
|
||||
></path>
|
||||
<path d="M341.037 480.37l257.344-175.718 27.713 40.592-257.34 175.718z" fill="#FFF"></path>
|
||||
<path d="M349.053 488.452L601.907 670.56l-28.725 39.887L320.307 528.34z" fill="#FFF"></path>
|
||||
</svg>
|
||||
<!-- svg icon for documentation license list line ends -->
|
||||
<span class="copyrightText">Licensing: </span>
|
||||
<span>
|
||||
本博客所有文章除特别声明外,均采用
|
||||
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="noreferrer" target="_blank"
|
||||
>CC BY-NC-SA 4.0</a
|
||||
>
|
||||
许可协议。转载请注明来自
|
||||
<a href="https://chodocs.cn/" rel="noreferrer" target="_blank">ChoDocs</a></span
|
||||
>!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ClientOnly>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.copyright {
|
||||
border-color: var(--vp-custom-block-tip-border);
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
background-color: var(--vp-custom-block-tip-bg);
|
||||
border-radius: 6px;
|
||||
color: var(--vp-c-text-2);
|
||||
font-size: 15px;
|
||||
margin-top: 50px;
|
||||
}
|
||||
.copyright .content {
|
||||
padding: 13px 16px;
|
||||
}
|
||||
.copyright .content .item {
|
||||
margin-bottom: 5px;
|
||||
word-break: break-word;
|
||||
line-height: 22px;
|
||||
}
|
||||
.copyright .content .item .icon {
|
||||
display: inline-block;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
margin-right: 0.375rem;
|
||||
vertical-align: -2.5px;
|
||||
}
|
||||
a {
|
||||
font-weight: 400;
|
||||
color: var(--vp-c-text-2);
|
||||
}
|
||||
a:hover {
|
||||
color: var(--vp-c-brand);
|
||||
}
|
||||
.copyrightText {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
18
docs/.vitepress/theme/components/MediumZoom.vue
Normal file
@ -0,0 +1,18 @@
|
||||
<script setup>
|
||||
import { onMounted } from 'vue'
|
||||
import mediumZoom from 'medium-zoom'
|
||||
|
||||
onMounted(() => {
|
||||
mediumZoom('[data-zoomable]', { background: 'var(--vp-c-bg)' })
|
||||
})
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.medium-zoom-overlay {
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
.medium-zoom-image {
|
||||
z-index: 21;
|
||||
}
|
||||
</style>
|
||||
114
docs/.vitepress/theme/components/layout/Footer.vue
Normal file
@ -0,0 +1,114 @@
|
||||
<template>
|
||||
<footer class="VPFooter">
|
||||
<div class="container">
|
||||
<p v-if="theme.footerConfig.icpRecordCode" class="recordCode">
|
||||
<span class="icon">
|
||||
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
<title>ICP备案号</title>
|
||||
<path
|
||||
d="M778.24 163.84c-76.8-40.96-165.888-61.44-269.312-61.44s-192.512 20.48-269.312 61.44h-133.12l23.552 337.92c8.192 113.664 67.584 217.088 162.816 280.576l215.04 144.384 215.04-144.384c96.256-63.488 155.648-166.912 163.84-280.576l23.552-337.92H778.24z m47.104 333.824c-7.168 94.208-56.32 181.248-135.168 233.472l-181.248 120.832L327.68 731.136c-78.848-53.248-129.024-139.264-135.168-233.472L173.056 225.28h136.192v-26.624c58.368-23.552 124.928-34.816 199.68-34.816s141.312 12.288 199.68 34.816V225.28H844.8l-19.456 272.384z"
|
||||
></path>
|
||||
<path
|
||||
d="M685.056 328.704v-46.08H455.68c2.048-4.096 6.144-9.216 11.264-15.36 5.12-7.168 9.216-12.288 11.264-15.36L419.84 240.64c-31.744 46.08-75.776 87.04-133.12 123.904 4.096 4.096 10.24 11.264 18.432 21.504l17.408 17.408c23.552-15.36 45.056-31.744 63.488-50.176 26.624 25.6 49.152 43.008 67.584 51.2-46.08 15.36-104.448 27.648-175.104 35.84 2.048 5.12 6.144 13.312 9.216 24.576 4.096 11.264 6.144 19.456 7.168 24.576l39.936-7.168v218.112H389.12V680.96h238.592v19.456h54.272V481.28H348.16c60.416-12.288 114.688-27.648 163.84-46.08 49.152 19.456 118.784 34.816 210.944 46.08 5.12-17.408 10.24-34.816 17.408-51.2-62.464-4.096-116.736-12.288-161.792-24.576 38.912-20.48 74.752-46.08 106.496-76.8z m-150.528 194.56h94.208v41.984h-94.208v-41.984z m0 78.848h94.208v41.984h-94.208v-41.984z m-144.384-78.848h94.208v41.984H390.144v-41.984z m0 78.848h94.208v41.984H390.144v-41.984zM424.96 326.656h182.272c-26.624 22.528-57.344 41.984-94.208 57.344-31.744-15.36-61.44-34.816-88.064-57.344z"
|
||||
></path>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="content">
|
||||
<a href="https://beian.miit.gov.cn" target="_blank">{{ theme.footerConfig.icpRecordCode }}</a>
|
||||
</span>
|
||||
</p>
|
||||
<p v-if="theme.footerConfig.publicSecurityRecordCode" class="recordCode">
|
||||
<!-- <span class="icon">
|
||||
<img src="/img/badge/gongan.png" title="联网备案号" />
|
||||
</span> -->
|
||||
<span class="content">
|
||||
<a
|
||||
:href="
|
||||
'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=' +
|
||||
theme.footerConfig.publicSecurityRecordCode
|
||||
.replace('号', '')
|
||||
.substring(theme.footerConfig.publicSecurityRecordCode.indexOf('备') + 1)
|
||||
"
|
||||
target="_blank"
|
||||
>{{ theme.footerConfig.publicSecurityRecordCode }}</a
|
||||
>
|
||||
</span>
|
||||
<br />
|
||||
<span
|
||||
v-if="theme.footerConfig.siteRunTime?.siteRunTime ?? true"
|
||||
id="runtime_span"
|
||||
class="content"
|
||||
></span>
|
||||
</p>
|
||||
<p v-if="theme.footerConfig.copyright" class="copyright" v-html="theme.footerConfig.copyright"></p>
|
||||
</div>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { useData } from 'vitepress'
|
||||
const { theme } = useData()
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.VPFooter {
|
||||
position: relative;
|
||||
z-index: var(--vp-z-index-footer);
|
||||
border-top: 1px solid var(--vp-c-gutter);
|
||||
padding: 25px 24px;
|
||||
background-color: var(--vp-c-bg);
|
||||
}
|
||||
.VPFooter.has-sidebar {
|
||||
display: none;
|
||||
}
|
||||
a:hover {
|
||||
color: var(--vp-c-brand);
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.VPFooter {
|
||||
padding: 25px;
|
||||
}
|
||||
}
|
||||
.container {
|
||||
margin: 0 auto;
|
||||
max-width: var(--vp-layout-max-width);
|
||||
text-align: center;
|
||||
}
|
||||
.recordCode,
|
||||
.copyright {
|
||||
line-height: 24px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--vp-c-text-2);
|
||||
}
|
||||
.recordCode {
|
||||
order: 2;
|
||||
}
|
||||
.copyright {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
.recordCode span {
|
||||
display: inline-block;
|
||||
}
|
||||
.recordCode span:not(:last-child) {
|
||||
margin-right: 0.175rem;
|
||||
}
|
||||
.recordCode .icon svg {
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
/*fill: var(--vp-c-text-2);*/
|
||||
fill: #5791ed;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
}
|
||||
.recordCode .icon img {
|
||||
height: 14px;
|
||||
width: 14px;
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
</style>
|
||||
55
docs/.vitepress/theme/index.ts
Normal file
@ -0,0 +1,55 @@
|
||||
// vitepress custom theme component configs
|
||||
|
||||
// deafult deps and packages for configuration
|
||||
import { onMounted } from 'vue'
|
||||
import { h, App } from 'vue'
|
||||
import { useData } from 'vitepress'
|
||||
import Theme from 'vitepress/theme'
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import mediumZoom from 'medium-zoom'
|
||||
|
||||
// custom styles import
|
||||
import './styles/index.scss'
|
||||
import './styles/vars.css'
|
||||
// @ts-ignore
|
||||
// custom components and vue template layouts
|
||||
import CustomLayout from './CustomLayout.vue'
|
||||
// @ts-ignore
|
||||
import AsideSponsors from './components/AsideSponsors.vue'
|
||||
// @ts-ignore
|
||||
import Copyright from './components/Copyright.vue'
|
||||
|
||||
export default {
|
||||
...DefaultTheme,
|
||||
Layout: () => {
|
||||
// custom layout migrated to custom slots
|
||||
CustomLayout
|
||||
|
||||
const props: Record<string, any> = {}
|
||||
// get frontmatter data via vitepress builtin
|
||||
const { frontmatter } = useData()
|
||||
|
||||
// add custom classes to vue components
|
||||
if (frontmatter.value?.layoutClass) {
|
||||
props.class = frontmatter.value.layoutClass
|
||||
}
|
||||
return h(Theme.Layout, props, {
|
||||
// aside buttom slots for sponsor
|
||||
'aside-bottom': () => h(AsideSponsors),
|
||||
'doc-footer-before': () => h(Copyright),
|
||||
})
|
||||
},
|
||||
|
||||
// medium zoom custom markdown attributes components
|
||||
setup() {
|
||||
onMounted(() => {
|
||||
mediumZoom('[data-zoomable]', {
|
||||
background: 'var(--vp-c-bg)',
|
||||
scrollOffset: 40,
|
||||
})
|
||||
})
|
||||
},
|
||||
// enhanceApp({ app }: { app: App }) {
|
||||
// app.provide('DEV', process.env.NODE_ENV === 'development')
|
||||
// },
|
||||
}
|
||||
169
docs/.vitepress/theme/styles/custom.css
Normal file
@ -0,0 +1,169 @@
|
||||
/* slim scroll bar for windows based web browsers - works on firefox */
|
||||
* {
|
||||
scrollbar-color: var(--vp-c-divider-light) var(--vp-button-alt-bg);
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
/* slim scroll bar for windows based web browsers - works on chrome, edge, and safari */
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
/* scrolling handle */
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--vp-c-mute);
|
||||
}
|
||||
|
||||
/* handle on hover */
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--vp-button-alt-hover-bg);
|
||||
}
|
||||
|
||||
/* scrolling track/backgronund color */
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--vp-button-alt-bg);
|
||||
}
|
||||
|
||||
/* tweak for removing webkit scrollbar's small corner square at the right buttom */
|
||||
::-webkit-scrollbar-corner {
|
||||
background: transparent;
|
||||
}
|
||||
/* slim scrollbar styles end */
|
||||
|
||||
/* responsible katex style with horizontal scroll on small screen devices */
|
||||
/* .katex-display > .katex {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
overflow-x: scroll;
|
||||
text-align: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.katex-display > ::-webkit-scrollbar {
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
}
|
||||
|
||||
.katex {
|
||||
font: normal 19px KaTeX_Main, Times New Roman, serif;
|
||||
line-height: 1.2;
|
||||
white-space: normal;
|
||||
text-indent: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.katex-display > ::-webkit-scrollbar {
|
||||
width: 0px;
|
||||
height: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 960px) {
|
||||
.katex-display > ::-webkit-scrollbar {
|
||||
width: 0px;
|
||||
height: 2px;
|
||||
}
|
||||
} */
|
||||
|
||||
.katex {
|
||||
font-size: 1.05em;
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
.katex-display > ::-webkit-scrollbar {
|
||||
overflow: auto hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
padding-top: 0.2em;
|
||||
padding-bottom: 0.2em;
|
||||
height: 3px;
|
||||
}
|
||||
|
||||
.katex-error {
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
.katex-display > .katex {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
overflow-x: scroll;
|
||||
text-align: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
/* katex styles end */
|
||||
|
||||
/* custom responsive medium zoom component style */
|
||||
.medium-zoom-overlay {
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
.medium-zoom-image {
|
||||
z-index: 21;
|
||||
}
|
||||
|
||||
.medium-zoom-image {
|
||||
/* border-radius: 5px; */
|
||||
align-items: center;
|
||||
}
|
||||
/* medium zoom style ends */
|
||||
|
||||
/* global border radius style for image within article container */
|
||||
.VPDoc .content-container img {
|
||||
border-radius: 5px;
|
||||
}
|
||||
/* image style ends */
|
||||
|
||||
/* fontawesome heart pumping styles */
|
||||
.heart {
|
||||
animation: heart 5s ease infinite;
|
||||
color: red;
|
||||
}
|
||||
|
||||
@keyframes heart {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
5% {
|
||||
transform: scale(1.25);
|
||||
}
|
||||
20% {
|
||||
transform: scale(1);
|
||||
}
|
||||
30% {
|
||||
transform: scale(1);
|
||||
}
|
||||
35% {
|
||||
transform: scale(1.25);
|
||||
}
|
||||
50% {
|
||||
transform: scale(1);
|
||||
}
|
||||
55% {
|
||||
transform: scale(1.25);
|
||||
}
|
||||
70% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
/* font awesome heart pumping style ends */
|
||||
|
||||
/* glonal code font styles */
|
||||
pre,
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: var(--vp-font-family-mono);
|
||||
}
|
||||
/* global code font styles ends */
|
||||
|
||||
/* specify vitepress home hero image's width to 300 px for preventing image overlapping on text */
|
||||
img.VPImage.image-src {
|
||||
width: 300px;
|
||||
}
|
||||
/* hero image sytles ends */
|
||||
|
||||
/* aligning homepage team member section vertically in straight line */
|
||||
.vp-doc > div {
|
||||
width: 100%;
|
||||
}
|
||||
/* team member section styles end */
|
||||
194
docs/.vitepress/theme/styles/custom.scss
Normal file
@ -0,0 +1,194 @@
|
||||
/* slim scroll bar for windows based web browsers - works on firefox */
|
||||
* {
|
||||
scrollbar-color: var(--vp-c-divider-light) var(--vp-button-alt-bg);
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
/* slim scroll bar for windows based web browsers - works on chrome, edge, and safari */
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
/* scrolling handle */
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--vp-c-mute);
|
||||
}
|
||||
|
||||
/* handle on hover */
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--vp-button-alt-hover-bg);
|
||||
}
|
||||
|
||||
/* scrolling track/backgronund color */
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--vp-button-alt-bg);
|
||||
}
|
||||
|
||||
/* tweak for removing webkit scrollbar's small corner square at the right buttom */
|
||||
::-webkit-scrollbar-corner {
|
||||
background: transparent;
|
||||
}
|
||||
/* slim scrollbar styles end */
|
||||
|
||||
/* responsible katex style with horizontal scroll on small screen devices */
|
||||
// katex fix
|
||||
.katex {
|
||||
font-size: 1.05em;
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
.katex-display {
|
||||
overflow: auto hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
padding-top: 0.2em;
|
||||
padding-bottom: 0.2em;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
height: 3px;
|
||||
}
|
||||
|
||||
.katex {
|
||||
font-size: 1.21em;
|
||||
}
|
||||
}
|
||||
|
||||
.katex-error {
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
/* .katex-display > .katex {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
overflow-x: scroll;
|
||||
text-align: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.katex-display > ::-webkit-scrollbar {
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
}
|
||||
|
||||
.katex {
|
||||
font: normal 19px KaTeX_Main, Times New Roman, serif;
|
||||
line-height: 1.2;
|
||||
white-space: normal;
|
||||
text-indent: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.katex-display > ::-webkit-scrollbar {
|
||||
width: 0px;
|
||||
height: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 960px) {
|
||||
.katex-display > ::-webkit-scrollbar {
|
||||
width: 0px;
|
||||
height: 2px;
|
||||
}
|
||||
} */
|
||||
|
||||
// .katex {
|
||||
// font-size: 1.05em;
|
||||
// direction: ltr;
|
||||
// }
|
||||
|
||||
// .katex-display > ::-webkit-scrollbar {
|
||||
// overflow: auto hidden;
|
||||
// -webkit-overflow-scrolling: touch;
|
||||
// padding-top: 0.2em;
|
||||
// padding-bottom: 0.2em;
|
||||
// height: 3px;
|
||||
// }
|
||||
|
||||
// .katex-error {
|
||||
// color: #f00;
|
||||
// }
|
||||
|
||||
// .katex-display > .katex {
|
||||
// display: inline-block;
|
||||
// max-width: 100%;
|
||||
// overflow-x: scroll;
|
||||
// text-align: auto;
|
||||
// overflow-y: hidden;
|
||||
// }
|
||||
/* katex styles end */
|
||||
|
||||
/* custom responsive medium zoom component style */
|
||||
.medium-zoom-overlay {
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
.medium-zoom-image {
|
||||
z-index: 21;
|
||||
}
|
||||
|
||||
.medium-zoom-image {
|
||||
/* border-radius: 5px; */
|
||||
align-items: center;
|
||||
}
|
||||
/* medium zoom style ends */
|
||||
|
||||
/* global border radius style for image within article container */
|
||||
.VPDoc .content-container img {
|
||||
border-radius: 5px;
|
||||
}
|
||||
/* image style ends */
|
||||
|
||||
/* fontawesome heart pumping styles */
|
||||
.heart {
|
||||
animation: heart 5s ease infinite;
|
||||
color: red;
|
||||
}
|
||||
|
||||
@keyframes heart {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
5% {
|
||||
transform: scale(1.25);
|
||||
}
|
||||
20% {
|
||||
transform: scale(1);
|
||||
}
|
||||
30% {
|
||||
transform: scale(1);
|
||||
}
|
||||
35% {
|
||||
transform: scale(1.25);
|
||||
}
|
||||
50% {
|
||||
transform: scale(1);
|
||||
}
|
||||
55% {
|
||||
transform: scale(1.25);
|
||||
}
|
||||
70% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
/* font awesome heart pumping style ends */
|
||||
|
||||
/* glonal code font styles */
|
||||
pre,
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: var(--vp-font-family-mono);
|
||||
}
|
||||
/* global code font styles ends */
|
||||
|
||||
/* specify vitepress home hero image's width to 300 px for preventing image overlapping on text */
|
||||
img.VPImage.image-src {
|
||||
width: 300px;
|
||||
}
|
||||
/* hero image sytles ends */
|
||||
|
||||
/* aligning homepage team member section vertically in straight line */
|
||||
.vp-doc > div {
|
||||
width: 100%;
|
||||
}
|
||||
/* team member section styles end */
|
||||
1
docs/.vitepress/theme/styles/index.scss
Normal file
@ -0,0 +1 @@
|
||||
@import './custom.scss';
|
||||
21
docs/.vitepress/theme/styles/vars.css
Normal file
@ -0,0 +1,21 @@
|
||||
/* global tweak styles for hero image gradient filter */
|
||||
:root {
|
||||
--vp-home-hero-name-color: transparent;
|
||||
--vp-home-hero-name-background: -webkit-linear-gradient(315deg, #42d392 25%, #647eff);
|
||||
|
||||
--vp-home-hero-image-background-image: linear-gradient(-45deg, #42d392 50%, #47caff 50%);
|
||||
--vp-home-hero-image-filter: blur(40px);
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(56px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 960px) {
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(72px);
|
||||
}
|
||||
}
|
||||
/* hero image gradient styles end */
|
||||
1
docs/academic/chemistry/index.md
Executable file
@ -0,0 +1 @@
|
||||
# Welcome to Chemistry
|
||||
136
docs/academic/chemistry/notes/12-5.md
Executable file
@ -0,0 +1,136 @@
|
||||
---
|
||||
title: '12-5: Reaction Mechanism'
|
||||
editLink: true
|
||||
lastUpdated: true
|
||||
showArticleMetadata: true
|
||||
categories:
|
||||
- Chemistry
|
||||
tags:
|
||||
- Java
|
||||
- JVM
|
||||
---
|
||||
|
||||
# 12-5: Reaction Mechanism
|
||||
|
||||
## 12-5-1: Learning Objectives
|
||||
|
||||
::: tip Learning Objectives
|
||||
One of the major reasons for studying chemical kinetics is to use measurements of the macroscopic properties of a system, such as the rate of change in the concentration of reactants or products with time, to discover the sequence of events that occur at the molecular level during a reaction. This molecular description is the mechanism of the reaction; it describes how individual atoms, ions, or molecules interact to form particular products. The stepwise changes are collectively called the reaction mechanism.
|
||||
|
||||
:::
|
||||
|
||||
In an internal combustion engine, for example, isooctane reacts with oxygen to give carbon dioxide and water:
|
||||
|
||||
$$
|
||||
2 \mathrm{C}_{8} \mathrm{H}_{18}(\mathrm{l})+25 \mathrm{O}_{2}(\mathrm{~g}) \longrightarrow 16 \mathrm{CO}_{2}(\mathrm{~g})+18 \mathrm{H}_{2} \mathrm{O}(\mathrm{g})
|
||||
$$
|
||||
|
||||
For this reaction to occur in a single step, 25 dioxygen molecules and 2 isooctane molecules would have to collide simultaneously and be converted to 34 molecules of product, which is very unlikely. It is more likely that a complex series of reactions takes place in a stepwise fashion. Each individual reaction, which is called an elementary reaction, involves one, two, or (rarely) three atoms, molecules, or ions. The overall sequence of elementary reactions is the mechanism of the reaction. The sum of the individual steps, or elementary reactions, in the mechanism must give the balanced chemical equation for the overall reaction.
|
||||
|
||||
The overall sequence of elementary reactions is the mechanism of the reaction.
|
||||
|
||||
## 12-5-2: Molecularity and the Rate-Determining Step
|
||||
|
||||
To demonstrate how the analysis of elementary reactions helps us determine the overall reaction mechanism, we will examine the much simpler reaction of carbon monoxide with nitrogen dioxide.
|
||||
|
||||
$$
|
||||
\mathrm{2CO + 2NO_2 \rightarrow 2CO_2 + N_2O_4}
|
||||
$$
|
||||
|
||||
From the balanced chemical equation, one might expect the reaction to occur via a collision of one molecule of $\mathrm{NO}_{2}$ with a molecule of $\mathrm{CO}$ that results in the transfer of an oxygen atom from nitrogen to carbon. The experimentally determined rate law for the reaction, however, is as follows:
|
||||
|
||||
$$
|
||||
\text { rate }=k\left[\mathrm{NO}_{2}\right]^{2}
|
||||
$$
|
||||
|
||||
The fact that the reaction is second order in $\left[\mathrm{NO}_{2}\right]$ and independent of $[\mathrm{CO}]$ tells us that it does not occur by the simple collision model outlined previously. If it did, its predicted rate law would be
|
||||
|
||||
$$
|
||||
\text { rate }=k\left[\mathrm{NO}_{2}\right][\mathrm{CO}] .
|
||||
$$
|
||||
|
||||
The following two-step mechanism is consistent with the rate law if step 1 is much slower than step 2:
|
||||
|
||||
### 15-2-1: Two-Step Mechanism
|
||||
|
||||
| Steps | Reaction | Reaction Type |
|
||||
| ------ | -------------------------------------------------------------------------------------------------------- | ------------------- |
|
||||
| step 1 | $\mathrm{NO}_{2}+\mathrm{NO}_{2} \stackrel{\text { slow }}{\longrightarrow} \mathrm{NO}_{3}+\mathrm{NO}$ | elementary reaction |
|
||||
| step 2 | $\underline{\mathrm{NO}_{3}+\mathrm{CO} \rightarrow \mathrm{NO}_{2}+\mathrm{CO}_{2}}$ | elementary reaction |
|
||||
| sum | $\mathrm{NO}_{2}+\mathrm{CO} \rightarrow \mathrm{NO}+\mathrm{CO}_{2}$ | overall reaction |
|
||||
|
||||
According to this mechanism, the overall reaction occurs in two steps, or elementary reactions. Summing steps 1 and 2 and canceling on both sides of the equation gives the overall balanced chemical equation for the reaction. The $\mathrm{NO_3}$ molecule is intermediate in the reaction, a species that does not appear in the balanced chemical equation for the overall reaction. It is formed as a product of the first step but is consumed in the second step.
|
||||
|
||||
The sum of the elementary reactions in a reaction mechanism must give the overall balanced chemical equation of the reaction.
|
||||
|
||||
## 12-5-3: Using Molecularity to Describe a Rate Law
|
||||
|
||||
The molecularity of an elementary reaction is the number of molecules that collide during that step in the mechanism. If there is only a single reactant molecule in an elementary reaction, that step is designated as unimolecular; if there are two reactant molecules, it is bimolecular; and if there are three reactant molecules (a relatively rare situation), it is termolecular. Elementary reactions that involve the simultaneous collision of more than three molecules are highly improbable and have never been observed experimentally. (To understand why, try to make three or more marbles or pool balls collide with one another simultaneously!)
|
||||
|
||||
::: warning About the image
|
||||
The Basis for Writing Rate Laws of Elementary Reactions. This diagram illustrates how the number of possible collisions per unit time between two reactant species, A and B, depends on the number of A and B particles present. The number of collisions between A and B particles increases as the product of the number of particles, not as the sum. This is why the rate law for an elementary reaction depends on the product of the concentrations of the species that collide in that step. (CC BY-NC-SA; anonymous)
|
||||
:::
|
||||
|
||||
Writing the rate law for an elementary reaction is straightforward because we know how many molecules must collide simultaneously for the elementary reaction to occur; hence the order of the elementary reaction is the same as its molecularity (Table 14.6.1). In contrast, the rate law for the reaction cannot be determined from the balanced chemical equation for the overall reaction. The general rate law for a unimolecular elementary reaction ( $\mathrm{A} \rightarrow$ products) is
|
||||
|
||||
$$
|
||||
\text { rate }=k[A] .
|
||||
$$
|
||||
|
||||
For bimolecular reactions, the reaction rate depends on the number of collisions per unit time, which is proportional to the product of the concentrations of the reactants, as shown in Figure 14.6.1 For a bimolecular elementary reaction of the form $\mathrm{A}+\mathrm{B} \rightarrow$ products, the general rate law is
|
||||
|
||||
$$
|
||||
\text { rate }=k[A][B] .
|
||||
$$
|
||||
|
||||
| Elementary Reaction | Molecularity | Rate | Reaction Order |
|
||||
| ----------------------------------------------------------------- | ------------ | ------------------------------------------------------- | -------------- |
|
||||
| $\mathrm{A} \rightarrow \text { products }$ | Unimolecular | $\text { rate }=k[\mathrm{~A}]$ | first |
|
||||
| $2\mathrm{~A} \rightarrow \text { products }$ | Bimolecular | $\text { rate }=k[\mathrm{~A}]^2$ | second |
|
||||
| $\mathrm{A}+\mathrm{B} \rightarrow \text { products }$ | Bimolecular | $\text { rate }=k[\mathrm{~A}][\mathrm{B}]$ | second |
|
||||
| $2 \mathrm{~A}+\mathrm{B} \rightarrow \text { products }$ | Termolecular | $\text { rate }=k[\mathrm{~A}]^2[\mathrm{~B}]$ | third |
|
||||
| $\mathrm{A}+\mathrm{B}+\mathrm{C} \rightarrow \text { products }$ | Termolecular | $\text { rate }=k[\mathrm{~A}][\mathrm{B}][\mathrm{C}]$ | third |
|
||||
|
||||
> For elementary reactions, the order of the elementary reaction is the same as its molecularity. In contrast, the rate law cannot be determined from the balanced chemical equation for the overall reaction (unless it is a single step mechanism and is therefore also an elementary step).
|
||||
|
||||
## 12-5-4: Identifying the Rate-Determining Step
|
||||
|
||||
Note the important difference between writing rate laws for elementary reactions and the balanced chemical equation of the overall reaction. Because the balanced chemical equation does not necessarily reveal the individual elementary reactions by which the reaction occurs, we cannot obtain the rate law for a reaction from the overall balanced chemical equation alone. In fact, it is the rate law for the slowest overall reaction, which is the same as the rate law for the slowest step in the reaction mechanism, the ratedetermining step, that must give the experimentally determined rate law for the overall reaction.This statement is true if one step is substantially slower than all the others, typically by a factor of 10 or more. If two or more slow steps have comparable rates, the experimentally determined rate laws can become complex. Our discussion is limited to reactions in which one step can be identified as being substantially slower than any other. The reason for this is that any process that occurs through a sequence of steps can take place no faster than the slowest step in the sequence. In an automotive assembly line, for example, a component cannot be used faster than it is produced. Similarly, blood pressure is regulated by the flow of blood through the smallest passages, the capillaries. Because movement through capillaries constitutes the rate-determining step in blood flow, blood pressure can be regulated by medications that cause the capillaries to contract or dilate. A chemical reaction that occurs via a series of elementary reactions can take place no faster than the slowest step in the series of reactions.
|
||||
|
||||
Look at the rate laws for each elementary reaction in the example as well as for the overall reaction.
|
||||
|
||||
Rate laws for each elementary reaction in our example as well as for the overall reaction
|
||||
|
||||
| Steps | Reaction | Rate |
|
||||
| ------ | ----------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| step 1 | $\mathrm{NO}_2+\mathrm{NO}_2 \stackrel{\mathrm{k}_1}{\rightarrow} \mathrm{NO}_3+\mathrm{NO}$ | $\text { rate }=k_1\left[\mathrm{NO}_2\right]^2(\text { predicted) }$ |
|
||||
| step 2 | $\underline{\mathrm{NO}_3+\mathrm{CO} \stackrel{k_2}{\rightarrow} \mathrm{NO}_2+\mathrm{CO}_2}$ | $\text { rate }=k_2\left[\mathrm{NO}_3\right][\mathrm{CO}](\text { predicted })$ |
|
||||
| step 3 | $\mathrm{NO}_2+\mathrm{CO} \stackrel{k}{\rightarrow} \mathrm{NO}+\mathrm{CO}_2$ | $\text { rate }=k\left[\mathrm{NO}_2\right]^2(\text { observed) }$ |
|
||||
|
||||
The experimentally determined rate law for the reaction of $\mathrm{NO}_{2}$ with $C O$ is the same as the predicted rate law for step 1 . This tells us that the first elementary reaction is the rate-determining step, so $k$ for the overall reaction must equal $k_{1}$. That is, $\mathrm{NO}_{3}$ is formed slowly in step 1, but once it is formed, it reacts very rapidly with CO in step 2.
|
||||
|
||||
Sometimes chemists are able to propose two or more mechanisms that are consistent with the available data. If a proposed mechanism predicts the wrong experimental rate law, however, the mechanism must be incorrect.
|
||||
|
||||
### 12-5-4-1: Example-A Reaction with an Intermediate
|
||||
|
||||
In an alternative mechanism for the reaction of $\mathrm{NO}_{2}$ with $\mathrm{CO}$ with $\mathrm{N}_{2} \mathrm{O}_{4}$ appearing as an intermediate.
|
||||
|
||||
alternative mechanism for the reaction of $\mathrm{NO}_{2}$ with $\mathrm{CO}$ with $\mathrm{N}_{2} \mathrm{O}_{4}$ appearing as an intermediate.
|
||||
|
||||
Write the rate law for each elementary reaction. Is this mechanism consistent with the experimentally determined rate law (rate $=\mathrm{k[{NO}_{2}]^{2}t}$)
|
||||
|
||||
Given: elementary reactions Asked for: rate law for each elementary reaction and overall rate law
|
||||
|
||||
#### Strategy
|
||||
|
||||
- Determine the rate law for each elementary reaction in the reaction.
|
||||
|
||||
- Determine which rate law corresponds to the experimentally determined rate law for the reaction. This rate law is the one for the rate-determining step.
|
||||
|
||||
#### Solution
|
||||
|
||||
::: details View solution
|
||||
A The rate law for step 1 is rate $=k_{1}\left[\mathrm{NO}_{2}\right]^{2}$; for step 2 , it is rate $=k_{2}\left[\mathrm{~N}_{2} \mathrm{O}_{4}\right][\mathrm{CO}]$.
|
||||
|
||||
B If step 1 is slow (and therefore the rate-determining step), then the overall rate law for the reaction will be the same: rate $=$ $k_{1}\left[\mathrm{NO}_{2}\right]^{2}$. This is the same as the experimentally determined rate law. Hence this mechanism, with $\mathrm{N}_{2} \mathrm{O}_{4}$ as an intermediate, and the one described previously, with $\mathrm{NO}_{3}$ as an intermediate, are kinetically indistinguishable. In this case, further experiments are needed to distinguish between them. For example, the researcher could try to detect the proposed intermediates, $\mathrm{NO}_{3}$ and $\mathrm{N}_{2} \mathrm{O}_{4}$, directly.
|
||||
:::
|
||||
40
docs/academic/chemistry/presentation-problems/pp-2-20.md
Executable file
@ -0,0 +1,40 @@
|
||||
# Presentation Problem 2-20
|
||||
|
||||
## Question
|
||||
|
||||
At $500 \mathrm{~K}$ in the presence of a copper surface, ethanol decomposes according to the equation
|
||||
|
||||
$$
|
||||
\mathrm{C}_2 \mathrm{H}_5 \mathrm{OH}(\mathrm{g}) \longrightarrow \mathrm{CH}_3 \mathrm{CHO}(g)+\mathrm{H}_2(g)
|
||||
$$
|
||||
|
||||
The pressure of $\mathrm{C}_2 \mathrm{H}_5 \mathrm{OH}$ was measured as a function of time and the following data were obtained:
|
||||
|
||||
| Time (s) | $P_{\mathrm{C}_2 \mathrm{H}_5 \mathrm{OH}} \text { (torr) }$ |
|
||||
| -------- | ------------------------------------------------------------ |
|
||||
| 0 | 250. |
|
||||
| 100. | 237 |
|
||||
| 200. | 224 |
|
||||
| 300. | 211 |
|
||||
| 400. | 198 |
|
||||
| 500. | 185 |
|
||||
|
||||
Since the pressure of a gas is directly proportional to the concentration of gas, we can express the rate law for a gaseous reaction in terms of partial pressures. Using the above data, deduce the rate law, the integrated rate law, and the value of the rate constant, all in terms of pressure units in atm and time in seconds. Predict the pressure of $\mathrm{C}_2 \mathrm{H}_5 \mathrm{OH}$ after $900 . \mathrm{s}$ from the start of the reaction. (Hint: To determine the order of the reaction with respect to $\mathrm{C}_2 \mathrm{H}_5 \mathrm{OH}$, compare how the pressure of $\mathrm{C}_2 \mathrm{H}_5 \mathrm{OH}$ decreases with each time listing.)
|
||||
|
||||
## Solution
|
||||
|
||||
{data-zoomable}
|
||||
|
||||
Due to the fact that the graph of $\mathrm{p}\left[\mathrm{O}_2\right]$ over time is showing $\mathrm{R}^2$ value of 1 we know we have a zero-order reaction. Therefore:
|
||||
|
||||
$$
|
||||
\begin{aligned}
|
||||
& \mathrm{k}=\frac{\mathrm{p}_0\left[\mathrm{C}_2 \mathrm{H}_5 \mathrm{OH}\right]-\mathrm{p}\left[\mathrm{C}_2 \mathrm{H}_5 \mathrm{OH}\right]}{\mathrm{t}}=\frac{250 \text { torr }-185 \text { torr }}{500 \mathrm{~s}}=0.13 \text { torr s }^{-1} \\
|
||||
& \mathrm{k}=0.13 \text { torr s } \mathrm{s}^{-1} \times \frac{1 \mathrm{~atm}}{760 \text { torr }}=1.71 \times 10^{-4} \mathrm{~atm} \mathrm{~s}^{-1} \\
|
||||
& \text { rate }=\mathbf{k} \\
|
||||
& \mathrm{p}\left(\mathrm{C}_2 \mathrm{H}_5 \mathrm{OH}\right)=-\mathrm{kt}+\mathrm{p}_0\left(\mathrm{C}_2 \mathrm{H}_5 \mathrm{OH}\right) \\
|
||||
& \mathrm{p}\left(\mathrm{C}_2 \mathrm{H}_5 \mathrm{OH}\right)=-\left(1.71 \times 10^{-4} \mathrm{~atm} \mathrm{~s}^{-1}\right) \times 900 \mathrm{~s}+0.33 \mathrm{~atm} \\
|
||||
& \mathrm{p}\left(\mathrm{C}_2 \mathrm{H}_5 \mathrm{OH}\right)=0.176 \mathrm{~atm} \mathrm{~s}^{-1} \\
|
||||
&
|
||||
\end{aligned}
|
||||
$$
|
||||
1
docs/academic/literature/index.md
Normal file
@ -0,0 +1 @@
|
||||
# Welcome to Literature
|
||||
109
docs/academic/literature/writing/methods-of-development.md
Normal file
@ -0,0 +1,109 @@
|
||||
---
|
||||
title: 'Patterns of Organization and Methods of Development'
|
||||
description: 'Literature methods of development article clip for review'
|
||||
---
|
||||
|
||||
# Patterns of Organization and Methods of Development
|
||||
|
||||
> Patterns of organization can help your readers follow the ideas within your essay and your paragraphs, but they can also work as methods of development to help you recognize and further develop ideas and relationships in your writing. Here are some strategies that can help you with both organization and development in your essays.
|
||||
|
||||
## Major Patterns of Organization
|
||||
|
||||

|
||||
|
||||
Read the following sentences:
|
||||
|
||||
- Now take the pie out of the oven and let it cool on the stovetop.
|
||||
- Mix the dry ingredients with the liquid ingredients.
|
||||
- Set the pie crust aside while you make the filling.
|
||||
|
||||
How did it feel to read the above list? A bit confusing, I would guess. That’s because the steps for making a pie were not well organized, and the steps don’t include enough detail for us to know exactly what we should do. (Like what are the dry and liquid ingredients?) We all know that starting instructions from the beginning and giving each detailed step in the order it should happen is vital to having a good outcome, in this case a yummy pie! But it’s not always so simple to know how to organize or develop ideas, and sometimes there’s more than one way, which complicates things even further.
|
||||
|
||||
First, let’s take a look at a couple of ways to think about organization.
|
||||
|
||||
## General to Specific or Specific to General
|
||||
|
||||
It might be useful to think about organizing your topic like a triangle:
|
||||
|
||||

|
||||
|
||||
The first triangle represents starting with the most general, big picture information first, moving then to more detailed and often more personal information later in the paper. The second triangle represents an organizational structure that starts with the specific, small scale information first and then moves to the more global, big picture stuff.
|
||||
|
||||
For example, if your topic is traffic in Vancouver, British Columbia, an essay that uses the general-to-specific organizational structure might begin this way:
|
||||
|
||||
Many people consider Vancouver, British Columbia, to be a relaxed place to live. They would be shocked to know how bad the traffic is traveling major arteries into the city and even driving around the city itself.
|
||||
|
||||
An essay that uses the specific-to-general structure might start like this:
|
||||
|
||||
Transit is crowded, parking is expensive, and vehicles stop and go through the main streets of the city of Vancouver, British Columbia, and that is just once travelers brave the crowded arteries to enter the city; Vancouver’s traffic problem does not lend itself to the relaxed atmosphere many believe the city to have.
|
||||
|
||||
What’s the difference between these two introductions? And how might they appeal to the intended audience for this essay in different ways? The first introduction is looking at the big picture of the problem and mentions pollution’s impact on all citizens in Portland, while the second introduction focuses on one specific family. The first helps readers see how vast the problem really is, and the second helps connect readers to a real family, making an emotional appeal from the very beginning. Neither introduction is necessarily better. You’ll choose one over the other based on the kind of tone you’d like to create and how you’d like to affect your audience. It’s completely up to you to make this decision.
|
||||
|
||||
## Does the Triangle Mean the Essay Keeps Getting More Specific or More Broad until the Very End?
|
||||
|
||||
The triangle is kind of a general guide, meaning you’re allowed to move around within it all you want. For example, it’s possible that each of your paragraphs will be its own triangle, starting with the general or specific and moving out or in. However, if you begin very broadly, it might be effective to end your essay in a more specific, personal way. And if you begin with a personal story, consider ending your essay by touching on the global impact and importance of your topic.
|
||||
|
||||
## Are There Other Ways to Think about Organizing My Ideas?
|
||||
|
||||
Yes! Rather than thinking about which of your ideas are most specific or personal or which are more broad or universal, you might consider one of the following ways of organizing your ideas:
|
||||
|
||||
- Most important information first (consider what you want readers to focus on first)
|
||||
- Chronological order (the order in time that events take place)
|
||||
- Compare and contrast (ideas are organized together because of their relationship to each other)
|
||||
|
||||
The section on Methods of Development, below, offers more detail about some of these organizational patterns, along with some others.
|
||||
|
||||
Choose one of the following topics, and practice writing a few opening sentences like we did above, once using the general-to-specific format and once using the specific-to-general. Which do you like better? What audience would be attracted to which one? Share with peers to see how others tackled this challenge. How would you rewrite their sentences? Why? Discuss your changes and listen to how your peers have revised your sentences. Taking in other people’s ideas will help you see new ways to approach your own writing and thinking.
|
||||
Topics:
|
||||
|
||||
- Facing fears
|
||||
- Safety in sports
|
||||
- Community policing
|
||||
- Educating prisoners
|
||||
- Sex education
|
||||
|
||||
## Methods of Development
|
||||
|
||||
The methods of development covered here are best used as ways to look at what’s already happening in your draft and to consider how you might emphasize or expand on any existing patterns. You might already be familiar with some of these patterns because teachers will sometimes assign them as the purpose for writing an essay. For example, you might have been asked to write a cause-and-effect essay or a comparison-and-contrast essay.
|
||||
|
||||
It’s important to emphasize here that patterns of organization or methods of developing content usually happen naturally as a consequence of the way the writer engages with and organizes information while writing. That is to say, most writers don’t sit down and say, “I think I’ll write a cause-and-effect essay today.” Instead, a writer might be more likely to be interested in a topic, say, the state of drinking water in the local community, and as the writer begins to explore the topic, certain cause-and-effect relationships between environmental pollutants and the community water supply may begin to emerge.
|
||||
|
||||
So if these patterns just occur naturally in writing, what’s the use in knowing about them? Well, sometimes you might be revising a draft and notice that some of your paragraphs are a bit underdeveloped. Maybe they lack a clear topic, or maybe they lack support. In either case, you can look to these common methods of development to find ways to sharpen those vague topics or to add support where needed. Do you have a clear cause statement somewhere but you haven’t explored the effects? Are you lacking detail somewhere where a narrative story or historical chronology can help build reader interest and add support? Are you struggling to define an idea that might benefit from some comparison or contrast? Read on to consider some of the ways that these strategies can help you in revision.
|
||||
|
||||
### Cause and Effect (or Effect and Cause)
|
||||
|
||||
Do you see a potential cause-and-effect relationship developing in your draft? The cause-and-effect pattern may be used to identify one or more causes followed by one or more effects or results. Or you may reverse this sequence and describe effects first and then the cause or causes. For example, the causes of water pollution might be followed by its effects on both humans and animals. You may use obvious transitions to clarify cause and effect, such as “What are the results? Here are some of them…” or you might simply use the words _cause_, _effect_, and _result_, to cue the reader about your about the relationships that you’re establishing.
|
||||
|
||||
### Problem-Solution
|
||||
|
||||
At some point does your essay explore a problem or suggest a solution? The problem-solution pattern is commonly used in identifying something that’s wrong and in contemplating what might be done to remedy the situation. There are probably more ways to organize a problem-solution approach, but but here are three possibilities:
|
||||
|
||||
- Describe the problem, followed by the solution.
|
||||
- Propose the solution first and then describe the problems that motivated it.
|
||||
- Or a problem may be followed by several solutions, one of which is selected as the best.
|
||||
|
||||
When the solution is stated at the end of the paper, the pattern is sometimes called the delayed proposal. For a hostile audience, it may be effective to describe the problem, show why other solutions do not work, and finally suggest the favored solution. You can emphasize the words _problem_ and _solution_ to signal these sections of your paper for your reader.
|
||||
|
||||
### Chronology or Narrative
|
||||
|
||||
Do you need to develop support for a topic where telling a story can illustrate some important concept for your readers? Material arranged chronologically is explained as it occurs in time. A chronological or narrative method of development might help you find a way to add both interest and content to your essay. Material arranged chronologically is explained as it occurs in time. This pattern may be used to establish what has happened. Chronology or narrative can be a great way to introduce your essay by providing a background or history behind your topic. Or you may want to tell a story to develop one or more points in the body of your essay. You can use transitional words like _then_, _next_, and _finally_ to make the parts of the chronology clear.
|
||||
|
||||
### Comparison and Contrast
|
||||
|
||||
Are you trying to define something? Do you need your readers to understand what something is and what it is not? The comparison-and-contrast method of development is particularly useful in extending a definition, or anywhere you need to show how a subject is like or unlike another subject. For example, the statement is often made that drug abuse is a medical problem instead of a criminal justice issue. An author might attempt to prove this point by comparing drug addiction to AIDS, cancer, or heart disease to redefine the term “addiction” as a medical problem. A statement in opposition to this idea could just as easily establish contrast by explaining all the ways that addiction is different from what we traditionally understand as an illness. In seeking to establish comparison or contrast in your writing, some words or terms that might be useful are _by contrast_, _in comparison_, _while_, _some_, and _others_.
|
||||
|
||||
::: tip Summary
|
||||
|
||||
These four methods of development—cause and effect, problem-solution, chronology or narrative, and comparison and contrast—are just a few ways to organize and develop ideas and content in your essays. It’s important to note that they should not be a starting point for writers who want to write something authentic—something that they care deeply about. Instead, they can be a great way to help you look for what’s already happening with your topic or in a draft, to help you to write more, or to help you reorganize some parts of an essay that seem to lack connection or feel disjointed. Look for organizational patterns when you’re reading work by professional writers. Notice where they combine strategies (e.g., a problem-solution pattern that uses cause-and-effect organization, or a comparison-contrast pattern that uses narrative or chronology to develop similarities or differences). Pay attention to how different writers emphasize and develop their main ideas, and use what you find to inspire you in your own writing. Better yet, work on developing completely new patterns of your own.
|
||||
|
||||
:::
|
||||
|
||||
::: info Reference
|
||||
|
||||
- This chapter was adapted from “[Patterns of Organization and Methods of Development](https://openoregon.pressbooks.pub/wrd/chapter/patterns-of-organization-and-methods-of-development/)” in _The Word on College Reading and Writing_ by Carol Burnell, Jaime Wood, Monique Babin, Susan Pesznecker, and Nicole Rosevear, which is licensed under a [CC BY-NC 4.0 Licence](https://creativecommons.org/licenses/by-nc/4.0/). Adapted by Allison Kilgannon.
|
||||
|
||||
- “[Peach and lavender pie](https://flic.kr/p/whiByE)” by [Heather Joan](https://www.flickr.com/photos/heatherjoan/) is licensed under a [CC BY-NC-ND 2.0 Licence](https://creativecommons.org/licenses/by-nc-nd/2.0/).
|
||||
- “General to Specific vs. Specific to General Triangles” by Carol Burnell, Jaime Wood, Monique Babin, Susan Pesznecker, and Nicole Rosevear is under a [CC BY-NC 4.0 Licence](https://creativecommons.org/licenses/by-nc/4.0/).
|
||||
- Kilgannon, Allison. “Patterns of Organization and Methods of Development.” Opentextbc.ca, 20 Aug. 2021, opentextbc.ca/advancedenglish/chapter/patterns-of-organization-and-methods-of-development/#:~:text=These%20four%20methods%20of%20development.
|
||||
|
||||
:::
|
||||
1
docs/academic/physics/index.md
Normal file
@ -0,0 +1 @@
|
||||
# Welcome to Physics
|
||||
164
docs/academic/physics/ipho-formulas-jpn/1.md
Normal file
@ -0,0 +1,164 @@
|
||||
# Formulas for IPhO 日本語版: Section 1
|
||||
|
||||
## 1: 数学
|
||||
|
||||
### 1.1: Taylor 展開
|
||||
|
||||
1. Taylor 展開(アバウトに切り捨てる:
|
||||
|
||||
$$
|
||||
F(x)=F\left(x_{0}\right)+\sum F^{(n)}\left(x_{0}\right)\left(x-x_{0}\right)^{n} / n
|
||||
$$
|
||||
|
||||
線形近似(特別な場合):
|
||||
|
||||
$$
|
||||
F(x) \approx F\left(x_{0}\right)+F^{\prime}\left(x_{0}\right)\left(x-x_{0}\right)
|
||||
$$
|
||||
|
||||
$|x| \ll 1$ のときの例 $:$
|
||||
|
||||
$$
|
||||
\sin x \approx x, \cos x \approx 1-x^{2} / 2, e^{x} \approx 1+x
|
||||
$$
|
||||
|
||||
$$
|
||||
\ln (1+x) \approx x,(1+x)^{n} \approx 1+n x
|
||||
$$
|
||||
|
||||
### 1.2: 摂動法
|
||||
|
||||
2. 摂動法:摂動のない(直接解ける)問題の解を $0$ 番目の近似値として求め,前の似値に基づく次の近似値の補正を繰り返して解を求める.
|
||||
|
||||
### 1.3: 定数係数線形微分方程式
|
||||
|
||||
3. 定数係数線形微分方程式 $a y^{\prime \prime}+b y^{\prime}+c y=0$ の解:
|
||||
|
||||
$$
|
||||
y=A \exp \left(\lambda_1 x\right)+B \exp \left(\lambda_2 x\right) \text {. }
|
||||
$$
|
||||
|
||||
ここで $\lambda_{1,2}$ は特性方程式 $a \lambda^2+b \lambda+c=0$ の異な る 2 解. もし $a, b, c$ が実数で特性方程式の解が複素数 $\lambda_{1,2}=\gamma \pm i \omega$ ならば,
|
||||
|
||||
$$
|
||||
y=C e^{\gamma x} \sin \left(\omega x+\varphi_0\right)
|
||||
$$
|
||||
|
||||
### 1.4: 複素数
|
||||
|
||||
4. 複素数
|
||||
|
||||
$$
|
||||
\begin{gathered}
|
||||
z=a+b i=|z| e^{i \varphi}, \bar{z}=a-b i=|z| e^{-i \varphi} \\
|
||||
|z|^2=z \bar{z}=a^2+b^2, \varphi=\arg z=\arcsin \frac{b}{|z|} \\
|
||||
\operatorname{Re} z=(z+\bar{z}) / 2, \operatorname{Im} z=(z-\bar{z}) / 2 i \\
|
||||
\left|z_1 z_2\right|=\left|z_1\right|\left|z_2\right|, \arg z_1 z_2=\arg z_1+\arg z_2 \\
|
||||
e^{i \varphi}=\cos \varphi+i \sin \varphi \\
|
||||
\cos \varphi=\frac{e^{i \varphi}+e^{-i \varphi}}{2}, \sin \varphi=\frac{e^{i \varphi}-e^{-i \varphi}}{2 i}
|
||||
\end{gathered}
|
||||
$$
|
||||
|
||||
### 1.5: ベクトルの内積と外積
|
||||
|
||||
5. ベクトルの内積と外積は分配法則が成立する : $a(b+c)=a b+a c$
|
||||
|
||||
$$
|
||||
\begin{gathered}
|
||||
\boldsymbol{a} \cdot \boldsymbol{b}=\boldsymbol{b} \cdot \boldsymbol{a}=a_x b_x+a_y b_y+\cdots=a b \cos \varphi \\
|
||||
|\boldsymbol{a} \times \boldsymbol{b}|=a b \sin \varphi, \boldsymbol{a} \times \boldsymbol{b}=-\boldsymbol{b} \times \boldsymbol{a} \perp \boldsymbol{a}, \boldsymbol{b} \\
|
||||
\boldsymbol{a} \times \boldsymbol{b}=\left(a_y b_z-a_z b_y\right) \boldsymbol{e}_x+\left(a_z b_x-a_x b_z\right) \boldsymbol{e}_y+\cdots \\
|
||||
\boldsymbol{a} \times[\boldsymbol{b} \times \boldsymbol{c}]=(\boldsymbol{a} \cdot \boldsymbol{c}) \boldsymbol{b}-(\boldsymbol{a} \cdot \boldsymbol{b}) \boldsymbol{c}
|
||||
\end{gathered}
|
||||
$$
|
||||
|
||||
スカラー三重積(3 つのベクトルで張られる平行四面 体の体積):
|
||||
|
||||
$$
|
||||
(\boldsymbol{a}, \boldsymbol{b}, \boldsymbol{c}) \equiv \boldsymbol{a} \cdot[\boldsymbol{b} \times \boldsymbol{c}]=[\boldsymbol{a} \times \boldsymbol{b}] \cdot \boldsymbol{c}=(\boldsymbol{b}, \boldsymbol{c}, \boldsymbol{a})
|
||||
$$
|
||||
|
||||
### 1.6: 余弦定理と正弦定理
|
||||
|
||||
6. 余弦定理と正弦定理:
|
||||
$$
|
||||
\begin{aligned}
|
||||
& c^2=a^2+b^2-2 a b \cos C \\
|
||||
& a / \sin A=b / \sin B=2 R
|
||||
\end{aligned}
|
||||
$$
|
||||
|
||||
### 1.7: 三角法
|
||||
|
||||
7. $$
|
||||
\begin{aligned}
|
||||
& \sin (\alpha \pm \beta)=\sin \alpha \cos \beta \pm \cos \alpha \sin \beta \\
|
||||
& \cos (\alpha \pm \beta)=\cos \alpha \cos \beta \mp \sin \alpha \sin \beta \\
|
||||
& \tan (\alpha \pm \beta)=(\tan \alpha \pm \tan \beta) /(1 \mp \tan \alpha \tan \beta) \\
|
||||
& \cos ^2 \alpha=\frac{1+\cos 2 \alpha}{2}, \sin ^2 \alpha=\frac{1-\cos 2 \alpha}{2} \\
|
||||
& \cos \alpha \cos \beta=\frac{\cos (\alpha+\beta)+\cos (\alpha-\beta)}{2}, \ldots \\
|
||||
& \cos \alpha+\cos \beta=2\left(\cos \frac{\alpha+\beta}{2}+\cos \frac{\alpha-\beta}{2}\right), \ldots
|
||||
\end{aligned}
|
||||
$$
|
||||
|
||||
### 1.8: 円周角
|
||||
|
||||
8. 円周角は中心角の半分. よって,直角三角形の斜辺は その外接円の直径. もし四角形の対角の和が 180 度な らば,それは円に内接する.
|
||||
|
||||
### 1.9: 三角形の面樍
|
||||
|
||||
9. 三角形の面樍 $=\frac{1}{2} a h_a=p r=\sqrt{p(p-a)(p-b)(p-c)}=a b c / 4 R$
|
||||
|
||||
### 1.10: 重心
|
||||
|
||||
10. 三角形の重心は,中線の交点で,中線を 2:1 に内分する.\
|
||||
|
||||
### 1.11: ベクトルアプローチ <Badge type="tip" text="supplemental" />
|
||||
|
||||
1. 幾何の問題へのベクトルアプローチ.
|
||||
|
||||
### 1.12: 微分
|
||||
|
||||
12. 微分:
|
||||
$$
|
||||
\begin{gathered}
|
||||
(f g)^{\prime}=f^{\prime} g+f g^{\prime}, f[g(x)]^{\prime}=f^{\prime}[g(x)] g^{\prime}(x) \\
|
||||
(\sin x)^{\prime}=\cos x,(\cos x)^{\prime}=-\sin x \\
|
||||
\left(e^x\right)^{\prime}=e^x,(\ln x)^{\prime}=1 / x,\left(x^n\right)^{\prime}=n x^{n-1} \\
|
||||
(\arctan x)^{\prime}=1 /\left(1+x^2\right) \\
|
||||
(\arcsin x)^{\prime}=-(\arccos x)^{\prime}=1 / \sqrt{1-x^2}
|
||||
\end{gathered}
|
||||
$$
|
||||
|
||||
### 1.13: 積分
|
||||
|
||||
13. 積分:微分の公式の左辺と右辺を入れ替えたものと同 じ(逆演算).例えば,
|
||||
$$
|
||||
\int x^n \mathrm{~d} x=x^{n+1} /(n+1) .
|
||||
$$
|
||||
置換積分の特別な場合 :
|
||||
$$
|
||||
\int f(a x+b) \mathrm{d} x=F(a x+b) / a .
|
||||
$$
|
||||
|
||||
### 1.14: 円錐曲線
|
||||
|
||||
14. 円錐曲線: $a_{11} x^2+2 a_{12} x y+a_{22} y^2+a_1 x+a_2 y+a_0=$ 0 で, $a_{11}=a_{22}$ ならば円, $a_{11}\left(a_{11} a_{22}-a_{12}^2\right)>0$ ならば楕円, $\cdots<0$ ならば双曲線, $a_{11} a_{22}-a_{12}^2=0$ ならば放物線. 楕円 : $l_1+l_2=2 a, \alpha_1=\alpha_2$ [訳 者注 : 焦点と曲線上の点を結ぶ直線と接線とのなす角 ], $A=\pi a b$. 双曲線 : $l_1-l_2=2 a, \alpha_1+\alpha_2=0$. 放物線 $: l+h=$ const., $\alpha_1=\alpha_2$.
|
||||
|
||||
### 1.15: 数值計算 & 台形規則
|
||||
|
||||
15. 数值計算. $f(x)=0$ の解を求めるニュートン法 :
|
||||
$$
|
||||
x_{n+1}=x_n-f\left(x_n\right) / f^{\prime}\left(x_n\right)
|
||||
$$
|
||||
近似積分の台形規則:
|
||||
$$
|
||||
\begin{array}{r}
|
||||
\int_a^b f(x) \mathrm{d} x \approx \frac{b-a}{2 n}\left[f\left(x_0\right)+2\left\{f\left(x_1\right)+\cdots\right.\right.
|
||||
\left.\left.+f\left(x_{n-1}\right)\right\}+f\left(x_n\right)\right]
|
||||
\end{array}
|
||||
$$
|
||||
|
||||
### 1.16: ベクトルの微分 & 積分
|
||||
|
||||
16. ベクトルの微分と積分:成分ごとに微分/積分する.あるいは無限に近い$2$つのベクトルの差を求めることで 微分す.
|
||||
111
docs/academic/physics/ipho-formulas-jpn/10.md
Normal file
@ -0,0 +1,111 @@
|
||||
# Formulas for IPhO 日本語版: Section 10
|
||||
|
||||
## 10: 熱力学
|
||||
|
||||
### 10.1: $p V=\frac{w}{M} R T$
|
||||
|
||||
1. $p V=\frac{w}{M} R T$.
|
||||
|
||||
### 10.2: モルの気体の内部エネルギー
|
||||
|
||||
2. 1 モルの気体の内部エネルギー: $U=\frac{i}{2} R T$ [訳者注: 単 原子分子理想気体 $i=3$, 二原子分子理想気体 $i=5]$.
|
||||
|
||||
### 10.3: 標準状態
|
||||
|
||||
3. 標準状態での 1 モルの気体の体積は $22.4 \mathrm{~L}$.
|
||||
|
||||
### 10.4: 断熱過程
|
||||
|
||||
4. 断熱過程: 音速に比べて遅く, 熱の出入りがない. $p V^\gamma=$ const. $\left(T V^{\gamma-1}=\right.$ const. $)$.
|
||||
|
||||
### 10.5: γ=Cp/Cv=(i+2)/i
|
||||
|
||||
5. $\gamma=c_p / c_v=(i+2) / i$.
|
||||
|
||||
### 10.6: Boltzmann 分布
|
||||
|
||||
6. Boltzmann 分布 :
|
||||
$$
|
||||
\rho=\rho_0 e^{-M g h / R T}=\rho_0 e^{-U / k_B T}
|
||||
$$
|
||||
|
||||
### 10.7: Maxwell 分布
|
||||
|
||||
7. Maxwell 分布(v の速さをもつ分子の数)
|
||||
::: tip 訳者注
|
||||
|
||||
位相空間で $\boldsymbol{v}$ と $\boldsymbol{v}+\mathrm{d} \boldsymbol{v}$ の間にある分子の数の分布 であり,v の速さをもつ分子の数の分布とは異なる] $\propto e^{-m \boldsymbol{v}^2 / 2 k_B T}$
|
||||
|
||||
:::
|
||||
|
||||
### 10.8: 大気圧
|
||||
|
||||
8. 大気圧 : $\Delta p \ll p$ ならば $\Delta p=\rho g \Delta h$.
|
||||
|
||||
### 10.9: 公式
|
||||
|
||||
9. $p=\frac{1}{3} m n \overline{v^2}=n k_B T(n$ は数密度 $), \sqrt{\overline{\overline{v^2}}}=$ $\sqrt{3 k_B T / m}, \nu=v n S$.
|
||||
|
||||
### 10.10: Carnot サイクル
|
||||
|
||||
10. Carnot サイクル : 断熱過程 2 つと等温過程 2 つ. $S-T$ 座標を用いることにより $\eta=\left(T_1-T_2\right) / T_1$ を得る.
|
||||
|
||||
### 10.11: ヒートポンプ
|
||||
|
||||
11. ヒートポンプ: Carnot サイクルの逆. $\eta=\frac{T_1}{T_1-T_2}$.
|
||||
|
||||
### 10.12: エントロピー
|
||||
|
||||
12. エントロピー $: \mathrm{d} S=\mathrm{d} Q / T$.
|
||||
|
||||
### 10.13: 熱力学第一法則
|
||||
|
||||
13. 熱力学第一法則 : $\mathrm{d}^{\prime} U=\mathrm{d}^{\prime} A+\mathrm{d}^{\prime} Q$
|
||||
|
||||
### 10.14: 熱力学第二法則
|
||||
|
||||
14. 熱力学第二法則 : $\Delta S \geq 0$ (また $\left.\eta_{\text {real }} \leq \eta_{\text {Carnot }}\right)$.
|
||||
|
||||
### 10.15: 気体のする仕事
|
||||
|
||||
15. 気体のする仕事([ポイント 10](10#_10-10-carnot-サイクル) も参照):
|
||||
$$
|
||||
A=\int p \mathrm{~d} V, \quad \text { 断熱過程: } A=\frac{i}{2} \Delta(p V)
|
||||
$$
|
||||
|
||||
### 10.16: Dalton の法則
|
||||
|
||||
16. Dalton の法則: $p=$ $\sum p_i$
|
||||
|
||||
::: tip 訳者注
|
||||
|
||||
理想気体のみ成立
|
||||
|
||||
:::
|
||||
|
||||
### 10.17: 沸騰
|
||||
|
||||
17. 沸騰: 飽和蒸気の圧力 $p_v=p_0 .2$ 液の界面では $p_{v 1}+p_{v 2}=p_0$.
|
||||
|
||||
### 10.18: 熱流
|
||||
|
||||
18. 熱流: $P=k S \Delta T / l$ ( $k$ は熱伝導率). 直流回路に似て いる $(P \leftrightarrow I, \Delta T \leftrightarrow V, k \leftrightarrow 1 / \rho)$.
|
||||
|
||||
### 10.19: 熱容量
|
||||
|
||||
19. 熱容量 : $Q=\int c(T) \mathrm{d} T$. 固体では低温で $c \propto T^3$, 高温で $c=3 N k_B$ (Dulong-Petit の法則. ここで $N$ は結晶中の原子数)
|
||||
|
||||
### 10.20: 表面張力
|
||||
|
||||
20. 表面張力 :
|
||||
$$
|
||||
U=S \sigma, F=l \sigma, p=2 \sigma / R
|
||||
$$
|
||||
|
||||
### 10.21: Stefan-Boltzmann の法則 (灰色体)
|
||||
|
||||
21. Stefan-Boltzmann の法則 (灰色体) : $P=\varepsilon \sigma A T^4$.
|
||||
|
||||
### 10.22: Wien の変位則
|
||||
|
||||
22. Wien の変位則: $\nu_{\max }=A k_B T / h(A \approx$ 2.8), $\lambda_{\max }=h c / A^{\prime} k_B T\left(A^{\prime} \approx 5\right)$.
|
||||
49
docs/academic/physics/ipho-formulas-jpn/11.md
Normal file
@ -0,0 +1,49 @@
|
||||
# Formulas for IPhO 日本語版: Section 11
|
||||
|
||||
## 11: 量子力学
|
||||
|
||||
### 11.1:p=hk
|
||||
|
||||
1. $\boldsymbol{p}=\hbar \boldsymbol{k}(|\boldsymbol{p}|=h / \lambda), E=\hbar \omega=h \nu$.
|
||||
|
||||
### 11.2: 干渉
|
||||
|
||||
2. 干渉 : 波動光学のように.
|
||||
|
||||
### 11.3: 不確定性
|
||||
|
||||
3. 不確定性(数学の定理):
|
||||
|
||||
$$
|
||||
\Delta p \Delta x \geq \frac{\hbar}{2}, \Delta E \Delta t \geq \frac{\hbar}{2}, \Delta \omega \Delta t \geq \frac{1}{2}
|
||||
$$
|
||||
|
||||
滑らかでない場合の定性的な推定には $h$ の方が適する $(\Delta p \Delta x \approx h$ など $)$.
|
||||
|
||||
### 11.4: スペクトル
|
||||
|
||||
4. スペクトル : $h \nu=E_n-E_m$. スペクトル線の幅は寿 命に関係し, $\Gamma \tau \approx \hbar$.
|
||||
|
||||
### 11.5: 振動子
|
||||
|
||||
5. 振動子(例えば分子)のエネルギー準位(固有振動数 $\left.\nu_0\right): E_n=\left(n+\frac{1}{2}\right) h \nu_0$. 多数の固有振動数の場合, $E=\sum h n_i \nu_i$.
|
||||
|
||||
### 11.6: トンネル効果
|
||||
|
||||
6. トンネル効果: 幅 $l$ の障壁 $\Gamma$ は, $\Gamma \tau \approx \hbar(\tau=$ $l / \sqrt{\Gamma / m})$ であれば容易に透過する.
|
||||
|
||||
### 11.7: Bohr モデル
|
||||
|
||||
7. Bohr モデル : $E_n \propto-1 / n^2$. (古典的に計算される) 円軌道では, 軌道の長さが波長 $\lambda=h / m v$ の整数倍.
|
||||
|
||||
### 11.8: Compton 効果
|
||||
|
||||
8. Compton 効果: 光子が電子から散乱されると, 光子の $\Delta \lambda=\lambda_C(1-\cos \theta)$
|
||||
|
||||
### 11.9: 光電効果
|
||||
|
||||
9. 光電効果: $W+m v_{\max }^2 / 2=h \nu$ ( $W$ は仕事関数 $)$. $I-V$ グラフ:光電流は阻止電圧 $V=-(h \nu-W) / e$ で始まり, 正方向に電圧が大きくなると緩和する.
|
||||
|
||||
### 11.10: Stefan-Boltzmann の法則
|
||||
|
||||
10. Stefan-Boltzmann の法則 : $P=\sigma A T^4$
|
||||
48
docs/academic/physics/ipho-formulas-jpn/12.md
Normal file
@ -0,0 +1,48 @@
|
||||
# Formulas for IPhO 日本語版: Section 12
|
||||
|
||||
## 12: Kepler の法則
|
||||
|
||||
### 12.1: F & U
|
||||
|
||||
1. $F=G M m / r^2, U=-G M m / r \text {. }$
|
||||
|
||||
### 12.2: Kepler の第一法則
|
||||
|
||||
2. Kepler の第一法則 (2 質点の重力相互作用):それぞ れの軌道は,系の質量中心に焦点を持つ楕円,双曲線, 放物線になる. これは Runge-Lenz ベクトルから得ら れる (ポイント 9).
|
||||
|
||||
### 12.3: Kepler の第二法則
|
||||
|
||||
3. Kepler の第二法則(角運動量の保存): 中心力が働く 場にある質点について,その位置ベクトルは単位時間 に一定の面積を描く.
|
||||
|
||||
### 12.4: Kepler の第三法則
|
||||
|
||||
4. Kepler の第三法則 $: r^{-2}$ に比例する力が働く場で楕円 軌道を描く複数の質点について, 周期は長半径の $\frac{3}{2}$ 乗 に比例する :
|
||||
$$
|
||||
T_1^2 / T_2^2=a_1^3 / a_2^3
|
||||
$$
|
||||
|
||||
### 12.5: 楕円軌道
|
||||
|
||||
5. 重力場中で楕円軌道を描く質点の全エネルギー $(K+U)$ :
|
||||
$$
|
||||
E=-G M m / 2 a
|
||||
$$
|
||||
|
||||
### 12.6: 楕円率
|
||||
|
||||
1. 楕円率が $\varepsilon=d / a \ll 1$ の場合, 軌道は焦点をずらし た円形をしていると考えられる.
|
||||
|
||||
### 12.7: 楕円の性質
|
||||
|
||||
2. 楕円の性質 $: l_1+l_2=2 a ( l_1$ と $l_2$ は焦点までの距 離). $\alpha_1=\alpha_2$ (一方の焦点から出た光は他方の焦点に 反射する). $S=\pi a b$.
|
||||
|
||||
### 12.8: 円の中心
|
||||
|
||||
3. 円とその円の中心に焦点をもつ楕円は長軸の部分での み接する.
|
||||
|
||||
### 12.9: nge-Lenz ベクトル <Badge type="tip" text="supplemental" />
|
||||
|
||||
4. Runge-Lenz ベクトル(楕円率ベクトル)[訳者注:こ のベクトルはむしろ離心率と関係する.そこでここで は離心率ベクトルとして知られるベクトルを代わりに 記す.これは焦点から近日点に向かう向きで,大きさ が離心率 $e$ に一致する.]:
|
||||
$$
|
||||
\boldsymbol{e}=\frac{\boldsymbol{v} \times \boldsymbol{M}}{G M m}-\boldsymbol{e}_r=\text { const. }
|
||||
$$
|
||||
76
docs/academic/physics/ipho-formulas-jpn/13.md
Normal file
@ -0,0 +1,76 @@
|
||||
# Formulas for IPhO 日本語版: Section 13
|
||||
|
||||
## 13: 相対性理論
|
||||
|
||||
### 13.1:Lorentz 変換
|
||||
|
||||
1. Lorentz 変換 (Minkowski 幾何学の 4 次元時空の回 転)(慣性系間の速度が $\left.\boldsymbol{V}=V \boldsymbol{e}_x\right): \beta=V / c, \gamma=$
|
||||
|
||||
$$
|
||||
\begin{aligned}
|
||||
& 1 / \sqrt{1-\beta^2} \text { として, } \\
|
||||
& \qquad c t^{\prime}=\gamma(c t-\beta x), x^{\prime}=\gamma(x-\beta c t), y^{\prime}=y \\
|
||||
& E^{\prime} / c=\gamma\left(E / c-\beta p_x\right), p_x^{\prime}=\gamma\left(p_x-\beta E / c\right), p_y^{\prime}=p_y \\
|
||||
& \text { ここで, } \\
|
||||
& E=\frac{m c^2}{\sqrt{1-v^2 / c^2}}=m c^2+\frac{1}{2} m v^2+\cdots \\
|
||||
& p_x=\frac{m v_x}{\sqrt{1-v^2 / c^2}}, \text { etc. }
|
||||
\end{aligned}
|
||||
$$
|
||||
|
||||
### 13.2: 4 元ベクトルの長
|
||||
|
||||
2. 4 元ベクトルの長さ (スカラー量であり Lorentz 変換 で不変):
|
||||
$$
|
||||
\begin{aligned}
|
||||
s^2 & =(c t)^2-x^2-y^2-z^2 \\
|
||||
(m c)^2 & =(E / c)^2-p_x^2-p_y^2-p_z^2
|
||||
\end{aligned}
|
||||
$$
|
||||
|
||||
### 13.3: 速度の加算
|
||||
|
||||
3. 速度の加算 :
|
||||
$$
|
||||
v_x=\frac{v_x^{\prime}+V}{1+v_x^{\prime} V / c^2}, v_y=\frac{v_y^{\prime}}{\gamma\left(1+v_x^{\prime} V / c^2\right)}
|
||||
$$
|
||||
|
||||
### 13.4: Doppler 効果
|
||||
|
||||
4. Doppler 効果 :
|
||||
$$
|
||||
\nu=\gamma(1+\beta \cos \theta) \nu_0
|
||||
$$
|
||||
|
||||
### 13.5: Minkowski 空間
|
||||
|
||||
5. Minkowski 空間は, 時間が虚数( $(t i c t)$ であれば Euclid 空間にすることができる. 回転角 $\varphi$ に対して, $\tan \varphi=v / i c$ となり, $\sin \varphi, \cos \varphi$ を $\tan \varphi$ で表して Euclid 幾何学の公式を適用する (Lorentz 変換).
|
||||
|
||||
### 13.6: 長さの縮み
|
||||
|
||||
6. 長さの縮み : $l^{\prime}=l_0 / \gamma$.
|
||||
|
||||
### 13.7: 時間の遅れ
|
||||
|
||||
7. 時間の遅れ: $t^{\prime}=t_0 \gamma$.
|
||||
|
||||
### 13.8: 同時刻の相対性
|
||||
|
||||
8. 同時刻の相対性 : $\Delta t=-\gamma v \Delta x / c^2$.
|
||||
|
||||
### 13.9: F=dp/dt
|
||||
|
||||
9. $\boldsymbol{F}=\mathrm{d} \boldsymbol{p} / \mathrm{d} t\left(=\frac{\mathrm{d}}{\mathrm{d} t}(\gamma m \boldsymbol{v})\right)($ ここでの $\gamma=$ $\left.1 / \sqrt{1-v^2 / c^2}\right)$
|
||||
|
||||
### 13.10: 超相対論的極限
|
||||
|
||||
10. 超相対論的極限 $: v \approx c, p \approx m c, \sqrt{1-(v / c)^2} \approx$ $\sqrt{2(1-v / c)}$
|
||||
|
||||
### 13.11: 電場と磁場の Lorentz 変換 <Badge type="tip" text="supplemental" />
|
||||
|
||||
11. 電場と磁場の Lorentz 変換 : $\boldsymbol{E}_{\|}^{\prime}=\boldsymbol{E}_{\|}, \boldsymbol{B}_{\|}^{\prime}=\boldsymbol{B}_{\|}$,
|
||||
$$
|
||||
\begin{gathered}
|
||||
\boldsymbol{E}_{\perp}^{\prime} / c=\gamma\left(\boldsymbol{E}_{\perp} / c+\boldsymbol{v} / c \times \boldsymbol{B}_{\perp}\right), \\
|
||||
\boldsymbol{B}_{\perp}^{\prime}=\gamma\left(\boldsymbol{B}_{\perp}-\boldsymbol{v} / c \times \boldsymbol{E}_{\perp} / c\right)
|
||||
\end{gathered}
|
||||
$$
|
||||
11
docs/academic/physics/ipho-formulas-jpn/2.md
Normal file
@ -0,0 +1,11 @@
|
||||
# Formulas for IPhO 日本語版: Section 2
|
||||
|
||||
## 2: 一般的な推奨事
|
||||
|
||||
1. 全ての計算式の正しさを確かめる:a) 次元を調べる.
|
||||
b) 簡単で特別な場合を調べる(2 つの変数が等しい, 1
|
||||
つの変数が 0 または $\infty$ ). c) 解の定性的な挙動の妥当 性を調ベる. 2.もし問題文中に驚くベき偶然の一致があれば(例えば 2 つのものが同じ), 解答の鍵はそこにあるかもしれ ない.
|
||||
2. 問題文中の推奨事項をよく読む. 些細な部分に重要な 情報が含まれている場合があるので,問題文の文言に 注意する. かなり時間をかけても問題が解けない場合 は, 問題を誤解しているかもしれないので, もう一度 問題文を読む.
|
||||
3. 長くて時間のかかる計算は, 簡略化しなければならな い始めの方程式を全て書き出したのち, 最後(他の全 てが終わったとき) まで先送りする.
|
||||
4. 絶望的に難しいと思われる問題でも,たいてい非常に シンプルな解法がある.オリンピックの問題に限って 言えば,絶対に解ける.
|
||||
5. 実験では, a) 測定するほどの時問が無いとしても, 実 験計画の概略を書く,b) 結果の正確さを高める方法を 考える,c) 測定した值を全て(表として)書き出す.
|
||||
66
docs/academic/physics/ipho-formulas-jpn/3.md
Normal file
@ -0,0 +1,66 @@
|
||||
# Formulas for IPhO 日本語版: Section 3
|
||||
|
||||
## 3: 運動学
|
||||
|
||||
### 3.1: 質点
|
||||
|
||||
1. 質点または剛体の並進運動の場合(積分 → グラフの下
|
||||
の面積):
|
||||
$$
|
||||
\begin{gathered}
|
||||
\boldsymbol{v}=\frac{\mathrm{d} \boldsymbol{x}}{\mathrm{d} t}, \boldsymbol{x}=\int \boldsymbol{v} \mathrm{d} t\left(x=\int v_x \mathrm{~d} t \text { など }\right) \\
|
||||
\boldsymbol{a}=\frac{\mathrm{d} \boldsymbol{v}}{\mathrm{d} t}=\frac{\mathrm{d}^2 \boldsymbol{x}}{\mathrm{d} t^2}, \boldsymbol{v}=\int \boldsymbol{a} \mathrm{d} t \\
|
||||
t=\int v_x^{-1} \mathrm{~d} x=\int a_x^{-1} \mathrm{~d} v_x, x=\int \frac{v_x}{a_x} \mathrm{~d} v_x
|
||||
\end{gathered}
|
||||
$$
|
||||
もし $a$ が定数ならば, これらの積分は簡単に求めるこ
|
||||
とができて, 例えば
|
||||
$$
|
||||
x=v_0 t+a t^2 / 2=\left(v^2-v_0^2\right) / 2 a \text {. }
|
||||
$$
|
||||
|
||||
### 3.2: 回転運動
|
||||
|
||||
2. 回転運動は, 並進運動と似ていて:
|
||||
$$
|
||||
\begin{aligned}
|
||||
\omega & =\mathrm{d} \varphi / \mathrm{d} t, \varepsilon=\mathrm{d} \omega / \mathrm{d} t \\
|
||||
\boldsymbol{a} & =\boldsymbol{\tau} \mathrm{d} v / \mathrm{d} t+\boldsymbol{n} v^2 / R
|
||||
\end{aligned}
|
||||
$$
|
||||
|
||||
### 3.3: 曲線運動
|
||||
|
||||
3. 曲線運動は,ポイント 1 と同じだが,ベクトルは線速 度,加速度,経路長に置き換える.
|
||||
|
||||
### 3.4: 剛体の運動
|
||||
|
||||
4. 剛体の運動:
|
||||
- $v_A \cos \alpha=v_B \cos \beta$ ここで, $\boldsymbol{v}_A$ と $\boldsymbol{v}_B$ は剛体上の点 $A$ と $B$ の速度, $\alpha$ と $\beta$ は $\boldsymbol{v}_A$ と $\boldsymbol{v}_B$ が直線 $A B$ となす角.
|
||||
- 瞬間回転中心 (\#質点の軌道 の曲率中心)は, $\boldsymbol{a}$ と $\boldsymbol{b}$ に下ろした垂線の交点. 又は もし $\boldsymbol{v}_A, \boldsymbol{v}_B \perp A B$ ならば, $\boldsymbol{v}_A$ と $\boldsymbol{v}_B$ の先端を結ぶ 直線と $A B$ の交点.
|
||||
|
||||
### 3.5: 非慣性系
|
||||
|
||||
5. 非慣性系:
|
||||
$$
|
||||
\begin{array}{r}
|
||||
\quad \boldsymbol{v}_2=\boldsymbol{v}_0+\boldsymbol{v}_1, \boldsymbol{a}_2=\boldsymbol{a}_0+\boldsymbol{a}_1+\omega^2 \boldsymbol{R}+\boldsymbol{a}_{C o r} \\
|
||||
\text { ここで, } \boldsymbol{a}_{C o r} \perp \boldsymbol{v}_1 . \text { もし } \boldsymbol{v}_1=0 \text { なら } \boldsymbol{a}_{C o r}=0 .
|
||||
\end{array}
|
||||
$$
|
||||
|
||||
### 3.6: 弾道問題 <Badge type="tip" text="supplemental" />
|
||||
|
||||
6. 弾道問題:到達可能な範囲は
|
||||
$$
|
||||
y \leq v_0^2 /(2 g)-g x^2 /\left(2 v_0^2\right)
|
||||
$$
|
||||
最適な弾道では, 初速度と終速(衝突時の速度)が垂直 になる.
|
||||
|
||||
### 3.7: 最短経路
|
||||
|
||||
7. 最短経路を求めるには,Fermat と Huygens の原理が 使える.
|
||||
|
||||
### 3.8: ベクトル
|
||||
|
||||
8. ベクトル(速度,加速度)を求めるには,その向きと (場合によっては傾いた)ある軸への射影を求めれば 充分.
|
||||
141
docs/academic/physics/ipho-formulas-jpn/4.md
Normal file
@ -0,0 +1,141 @@
|
||||
# Formulas for IPhO 日本語版: Section 4
|
||||
|
||||
## 4: 力学
|
||||
|
||||
### 4.1: 剛体の二次元的な平衡
|
||||
|
||||
1. 剛体の二次元的な平衡 : 力についての 2 つの式とトル クについての 1 つの式. 1 (又は 2 )個の力についての 式は 1(又は 2)個のトルクについての式で代用でき る. トルクの方が良い場合が多く,原点を適切に選択 することで「退屈な」力を消すことができる. もし 2 点 のみに力がかかっているならば,(正味の)力がかかっ ている直線は一致する. 3 点であれば, 3 つの直線は 1 点で交わる.
|
||||
|
||||
### 4.2: 垂直抗力
|
||||
|
||||
2. 垂直抗力と摩擦力は 1 つの力に合成でき, 垂直抗力に 対して $\arctan \mu$ の角度で接触点に加わる.
|
||||
|
||||
### 4.3: 並進運動と回転運動
|
||||
|
||||
3. 並進運動と回転運動についての Newton の第二法則:
|
||||
$$
|
||||
\boldsymbol{F}=m \boldsymbol{a}, \boldsymbol{M}=I \boldsymbol{\varepsilon} \quad(\boldsymbol{M}=\boldsymbol{r} \times \boldsymbol{F})
|
||||
$$
|
||||
二次元の場合には $M$ と $\varepsilon$ は本質的にスカラーで, $M=F l=F_t r(l$ は力のうでの長さ $)$
|
||||
|
||||
### 4.4: 一般化座標
|
||||
|
||||
4. 一般化座標. 系の状態が 1 つの変数 $\xi$ とその時間微分 $\dot{\xi}$ で表され,ポテンシャルエネルギーが $U=U(\xi)$, 運動エネルギーが $K=\mu \xi^2 / 2$ であるならば, $\mu \ddot{\xi}=$ $-\mathrm{d} U(\xi) / \mathrm{d} \xi$. (したがって並進運動では, 力はポテン シャルエネルギーの微分)
|
||||
|
||||
### 4.5: 系質点
|
||||
|
||||
5. 系が質点 $m_i$ で構成されているとき:
|
||||
$$
|
||||
\begin{aligned}
|
||||
& \boldsymbol{r}_c=\sum m_i \boldsymbol{r}_i / \sum m_j, \boldsymbol{P}=\sum m_i \boldsymbol{v}_i \\
|
||||
& \boldsymbol{L}=\sum m_i \boldsymbol{r}_i \times \boldsymbol{v}_i, K=\sum m_i v_i^2 / 2 \\
|
||||
& I_z=\sum m_i\left(x_i^2+y_i^2\right)=\int\left(x^2+y^2\right) \mathrm{d} m \\
|
||||
&
|
||||
\end{aligned}
|
||||
$$
|
||||
|
||||
### 4.6: 質量中心の速度
|
||||
|
||||
6. 質量中心の速度が $\boldsymbol{v}_c$ であるような系 (添え字 $c$ は質量 中心についての物理量であることを示す):
|
||||
$$
|
||||
\begin{gathered}
|
||||
\boldsymbol{L}=\boldsymbol{L}_c+M_{\Sigma} \boldsymbol{R}_c \times \boldsymbol{v}_c, K=K_c+M_{\Sigma} v_c^2 / 2 \\
|
||||
\boldsymbol{P}=\boldsymbol{P}_c+M_{\Sigma} \boldsymbol{v}_c .
|
||||
\end{gathered}
|
||||
$$
|
||||
|
||||
### 4.7: Steiner 定理
|
||||
|
||||
7. Steiner の定理(平行軸の定理)も同じような形で は質量中心の回転軸からの距離):
|
||||
$$
|
||||
I=I_c+m b^2
|
||||
$$
|
||||
|
||||
### 4.8: ポイント 6
|
||||
|
||||
8. ポイント 6 の $\boldsymbol{P}$ と $\boldsymbol{L}$ を用いて, Newton の第二法則 :
|
||||
$$
|
||||
\boldsymbol{F}_{\Sigma}=\mathrm{d} \boldsymbol{P} / \mathrm{d} t, \boldsymbol{M}_{\Sigma}=\mathrm{d} \boldsymbol{L} / \mathrm{d} t
|
||||
$$
|
||||
|
||||
### 4.9: ポイント 5
|
||||
|
||||
9. ポイント 5 にに加えて,質量中心を通る $z$ 軸に対する慣性モ一メントは $I_{z 0}=$ $\sum_{i, j} m_i m_j\left[\left(x_i-x_j\right)^2+\left(y_i-y_j\right)^2\right] /\left(2 M_{\Sigma}\right)$
|
||||
|
||||
### 4.10: 原点に対する慣性
|
||||
|
||||
10. 原点に対する慣性モ一メント $\theta=\sum m_i r_i^2$ は, $2 \theta=I_x+I_y+I_z$ を用いることで二次元物体や等 方性のある物体の $I_z$ を計算するのに有用.
|
||||
|
||||
### 4.11: 相当単振子の長
|
||||
|
||||
11. 相当単振子の長さが $\tilde{l}$ である物理振子 :
|
||||
$$
|
||||
\begin{aligned}
|
||||
& \omega^2(l)=g /\left(l+I_c / m l\right) \\
|
||||
& \omega(l)=\omega(\tilde{l}-l)=\sqrt{g / \tilde{l}}, \quad \tilde{l}=l+I_c / m l \\
|
||||
&
|
||||
\end{aligned}
|
||||
$$
|
||||
|
||||
### 4.12: 慣性モーメントの係数
|
||||
|
||||
12. 慣性モーメントの係数 : 円柱 $\frac{1}{2}$, 球 $\frac{2}{5}$, 球殼 $\frac{2}{3}$, 棒 $\frac{1}{12}$ (端に対しては $\frac{1}{3}$ ), 正方形 $\frac{1}{6}$.
|
||||
|
||||
### 4.13: よく使われる保存則
|
||||
|
||||
13. よく使われる保存則:エネルギー(弾性衝突,摩擦な し), 運動量(正味の外力なし, 各方向について成立), 角運動量(正味の外トルクなし, 例えば, 外力のうでの 長さが 0 (これが 2 又は 3 点のまわりに成り立てば運 動量保存で代用できる))
|
||||
|
||||
### 4.14: 非慣性系における見かけの力
|
||||
|
||||
14. 非慣性系における見かけの力 : 慣性力 $-m a$, 遠心力 $m \omega^2 \boldsymbol{R}$, Coriolis 力 $2 m \boldsymbol{v} \times \Omega$ (避けた方がよい. 速 度に垂直なので仕事はしない).
|
||||
|
||||
### 4.15: 傾いた座標
|
||||
|
||||
15. 傾いた座標:斜面上での運動については, 斜面に平行 と垂直な方向に軸をとるのがよい。このとき重力加速 度は $x$ 成分と $y$ 成分をもつ. 軸は斜交することもある が, $\boldsymbol{v}=v_x \boldsymbol{e}_x+v_y \boldsymbol{e}_y$ のとき $v_x$ は $\boldsymbol{v}$ の $x$ 軸への射 影ではない.
|
||||
|
||||
### 4.16: 2 つの物体の衝突
|
||||
|
||||
16. 2 つの物体の衝突 : 保存されるのは, a) 全運動量, b) 全角運動量,c) 一方の物体の衝突点に関する角運動量, d) 全エネルギー(弾性衝突の場合, 摩擦がある場合 は, 摩擦力に垂直な方向の運動エネルギーが保存される. e) 衝突中に滑りが止まったならば,接触点の最終 速度は接触面上にある. f) 滑りが止まらなかったなら ば, 一方の物体から他方に伝わる運動量は, 接触面の 法線と $\arctan \mu$ の角度をなす.
|
||||
|
||||
### 4.17: 剛体のすべての運動
|
||||
|
||||
17. 剛体のすべての運動は (物体の各点の速度を見ると) 瞬 間回転中心 $C$ まわりの回転として表せる. 物体上の点 $P$ の $C$ からの距離は $P$ の軌跡の曲率半径とは異なる ことに注意せよ.
|
||||
|
||||
### 4.18: 紐の張力
|
||||
|
||||
18. 紐の張力:重さのある吊り紐では, 張力の水平成分は 一定で垂直成分は下にある紐の重さにより変わる. 滑 らかな面の上の紐による(単位長さあたりの)力は,そ の曲率半径と張力で決まり, $N=T / R$. 似た場合と して, 表面張力による圧力は $p=2 \sigma / R$. 導出には直 径に沿った圧力を調ベる.
|
||||
|
||||
### 4.19: 液体の表面
|
||||
|
||||
19. 液体の表面は(表面張力を無視すれば)等ポテンシャ ル面になる. 非圧縮性流体では, $w$ をポテンシャルエ ネルギーの体積密度として, $p=P_0-w$.
|
||||
|
||||
### 4.20: 非圧縮性流体に対する Bernoulli の法則
|
||||
|
||||
20. 非圧縮性流体に対する Bernoulli の法則:
|
||||
$$
|
||||
p+\frac{1}{2} \rho v^2+\rho \phi=\text { const. }
|
||||
$$
|
||||
一様な重力場では $\phi=g h$. 比熱が $c_p[\mathrm{~J} / \mathrm{kg}]$ である気 体では,
|
||||
$$
|
||||
\frac{1}{2} v^2+c_p T=\text { const. }
|
||||
$$
|
||||
|
||||
### 4.21: 直線的な流線 <Badge type="tip" text="supplemental" />
|
||||
|
||||
21. 直線的な流線に沾う運動量の連続性 : $p+\rho v^2=$ const.
|
||||
|
||||
### 4.22: 断熱不変量 <Badge type="tip" text="supplemental" />
|
||||
|
||||
22. 断熱不変量 : 振動する系の 1 周期の間のパラメータの 相対的な変化が小さければ,位相空間( $x-p$ 座標で表さ れる)上に書かれるループの面積は非常に高い精度で 保存される.
|
||||
|
||||
### 4.23: 安定性
|
||||
|
||||
23. 安定性を調ベるには, a) ポテンシャルエネルギー最小 の原理,又は b) 仮想仕事の原理を用いる.
|
||||
|
||||
### 4.24: 空間的に有限な運動に対する Virial 定理 <Badge type="tip" text="supplemental" />
|
||||
|
||||
24. 空間的に有限な運動に対する Virial 定理:a) もし $F \propto|\boldsymbol{r}|$ ならば $\langle K\rangle=\langle U\rangle$ (時間平均). b) もし $F \propto|\boldsymbol{r}|^{-2}$ ならば $2\langle K\rangle=-\langle U\rangle$.
|
||||
|
||||
### 4.25: Tsiolkovsky 公式
|
||||
|
||||
25. Tsiolkovsky の公式(ロケット): $\Delta v=u \ln \frac{M}{m}$
|
||||
66
docs/academic/physics/ipho-formulas-jpn/5.md
Normal file
@ -0,0 +1,66 @@
|
||||
# Formulas for IPhO 日本語版: Section 5
|
||||
|
||||
## 5. 振動と波
|
||||
|
||||
### 5.1: 減衰振動
|
||||
|
||||
1. 減衰振動:
|
||||
$$
|
||||
\ddot{x}+2 \gamma \dot{x}+\omega_0^2 x=0(\gamma<\omega)
|
||||
$$
|
||||
この方程式の解は ((Section 1: #3)[1#_1-3-定数係数線形微分方程式] 参照) :
|
||||
$$
|
||||
x=x_0 e^{-\gamma t} \sin \left(t \sqrt{\omega_0^2-\gamma^2}-\varphi_0\right)
|
||||
$$
|
||||
|
||||
### 5.2: 連成振動の式
|
||||
|
||||
2. 連成振動の式 : $\ddot{x}_i=\sum_j a_{i j} x_j$
|
||||
|
||||
### 5.3: 連成振動の系
|
||||
|
||||
3. $N$ 個の連成振動の系は, すべての振動子が同じ振動数 $\omega_i$ で $x_j=x_{j 0} \sin \left(\omega_i t+\varphi_{i j}\right)$ のように振動するとい う固有モードを $N$ 個持つ. 固有振動数 $\omega_i も N$ 個持 つ (一致するかもしれない, $\omega_i=\omega_j$ ). 一般解 $(2 N$ 個の積分定数 $X_i, \phi_i$ を持つ) は全ての固有振動の重ね 合わせ :
|
||||
|
||||
$$
|
||||
x_j=\sum_i X_i x_{j 0} \sin \left(\omega_i t+\varphi_{i j}+\phi_i\right)
|
||||
$$
|
||||
|
||||
### 5.4: 一般化座標
|
||||
|
||||
4. 一般化座標 $\xi$ ((Section 4: #4)[4#_4-4-一般化座標] 参照) で表され $K=\mu \dot{\xi}^2 / 2$ である系は, $\xi=0$ の点で平衡. 小さな振動につ いて $U(\xi) \approx \kappa \xi^2 / 2$ (ここで $\left.\kappa=U^{\prime \prime}(0)\right)$ であり $\omega^2=\kappa / \mu$.
|
||||
|
||||
### 5.5: 波の位相
|
||||
|
||||
5. $x, t$ での波の位相は $\varphi=k x-\omega t+\varphi_0$ で, $k=2 \pi / \lambda$ は波数. $x, t$ での值は $a_0 \cos \varphi=\operatorname{Re} a_0 e^{i \varphi}$. 位相速 度は $v_f=\nu \lambda=\omega / k$ で, 群速度は $v_g=\mathrm{d} \omega / \mathrm{d} k$.
|
||||
|
||||
### 5.6: 線形波
|
||||
|
||||
6. 線形波(電磁波, 小振幅の音波や水面波)の場合, どん なパルス波も正弦波の重ね合わせとして表せる. 定常 波は 2 つの逆向きに進む同じ波の合成 :
|
||||
|
||||
$$
|
||||
e^{i(k x-\omega t)}+e^{i(-k x-\omega t)}=2 e^{-i \omega t} \cos k t
|
||||
$$
|
||||
|
||||
### 5.7: 気体中の音速
|
||||
|
||||
7. 気体中の音速 :
|
||||
|
||||
$$
|
||||
c_s=\sqrt{(\partial p / \partial \rho)_{\text {断熱 }}}=\sqrt{\gamma p / \rho}=\sqrt{\gamma \overline{v^2} / 3}
|
||||
$$
|
||||
|
||||
### 5.8: 弾性体中の音速
|
||||
|
||||
8. 弾性体中の音速は $c_s=\sqrt{E / \rho}$.
|
||||
|
||||
### 5.9: 浅水波
|
||||
|
||||
9. 浅水波 $(h \ll \lambda)$ の速さ: $v=\sqrt{g h}$. 弦の場合: $v=\sqrt{T / \rho_{l i n}}$.
|
||||
|
||||
### 5.10: Doppler 効果
|
||||
|
||||
10. Doppler 効果 : $\nu=\nu_0 \frac{1+v_{\|} / c_s}{1-u_{\|} / c_s}$.
|
||||
|
||||
### 5.11: Huygens の原理
|
||||
|
||||
11. Huygens の原理 : 波面は段階的に構成される. 過去 の波面のすべての点に仮想的な波源を置く. 結果は距 離 $\Delta x=c_s \Delta t$ で区切られた曲線(ここで $\Delta t$ は時間 間隔, $c_s$ は与えられた点の速度). 波は波面に垂直に 進む.
|
||||
59
docs/academic/physics/ipho-formulas-jpn/6.md
Normal file
@ -0,0 +1,59 @@
|
||||
# Formulas for IPhO 日本語版: Section 6
|
||||
|
||||
## 6: 幾何光学,測光
|
||||
|
||||
### 6.1: Fermat 原理
|
||||
|
||||
1. Fermat の原理 : 点 $A$ から $B$ への波の経路は波の移動 時間が最も短いもの.
|
||||
|
||||
### 6.2: Snell 法則
|
||||
|
||||
2. Snell の法則 :
|
||||
|
||||
$$
|
||||
\sin \alpha_1 / \sin \alpha_2=n_2 / n_1=v_1 / v_2 .
|
||||
$$
|
||||
|
||||
### 6.3:
|
||||
|
||||
3. 屈折率が連続的に変化するならば,媒質を屈折率が $n$ で一定のいくつかの仮想的な層に分けて Snell の 法則を適用する. 光線は屈折率一定の層に沿って進む こともでき,もし全反射の条件をわずかに満たせば, $n^{\prime}=n / r \quad(r$ は曲率半径 $)$
|
||||
|
||||
### 6.4:
|
||||
|
||||
4. 屈折率が $\mathrm{z}$ 座標にのみ依存するならば, 光子の運動量 $p_x, p_y$ とエネルギーは保存される:
|
||||
|
||||
$$
|
||||
k_x, k_y=\text { const., }|\boldsymbol{k}| / n=\text { const. }
|
||||
$$
|
||||
|
||||
### 6.5:薄いレンズの式
|
||||
|
||||
6. 薄いレンズの式(符号に注意する):
|
||||
|
||||
$$
|
||||
1 / a+1 / b=1 / f \equiv D
|
||||
$$
|
||||
|
||||
### 6.6: Newton の式
|
||||
|
||||
6. Newton の式 : 物体側焦点から物体までの距離を $x_1$, 像側焦点から像までの距離を $x_2$ とすると, $x_1 x_2=f^2$
|
||||
|
||||
### 6.7: 像の位置を求める視差法
|
||||
|
||||
7. 像の位置を求める視差法 : 目の位置と垂直に動かした ときに,鉛筆の先が像に対してずれないような位置を 探す.
|
||||
|
||||
### 6.8: レンズを通る光線の経路の幾何学的な描き方
|
||||
|
||||
8. レンズを通る光線の経路の幾何学的な描き方:a) レン ズの中心を通る光線は屈折しない。b) 光軸に平行な光 線は焦点を通る,c) 屈折後, 初めに平行だった光線どうしは焦点面(焦点を通り光軸に垂直な平面)上で集 まる.d) 平面の像は平面であり,この 2 つの平面はレ ンズの平面上で交わる.
|
||||
|
||||
### 6.9: 光束
|
||||
|
||||
9. 光束 $\Phi$ [単位: lumen $(\operatorname{lm})$] は, 光のエネルギー を示し, 眼の感度に応じて重み付けされる. 光度 [candela (cd)]は(光源から出る)立体角あたりの 光束で, $I=\Phi / \Omega$. 照度 $[\operatorname{lux}(\mathrm{lx})]$ は(面に入射する) 面積あたりの光束で, $E=\Phi / S$.
|
||||
|
||||
### 6.10: Gauss 定理
|
||||
|
||||
10. 光束についての Gauss の定理 : 光度 $I_i$ の点光源を囲 む閉曲面を通って外に出る光束は, $\Phi=4 \pi \sum I_i$. 光 源が 1 つで距離が $r$ のとき $E=I / r^2$
|
||||
|
||||
### 6.11: 実験のヒント
|
||||
|
||||
11. 実験のヒント:紙についた油污れが周囲の紙と同じ明 るさならば,その紙は両面から同じように照らされて いる.
|
||||
67
docs/academic/physics/ipho-formulas-jpn/7.md
Normal file
@ -0,0 +1,67 @@
|
||||
# Formulas for IPhO 日本語版: Section 7
|
||||
|
||||
## 7: 波動光学
|
||||
|
||||
### 7.1: Huygens の原理に基づいた回折
|
||||
|
||||
1. Huygens の原理に基づいた回折 : 障害物が波面を切断 すると波面は小さな断片に分割され,それが仮想的な 点波源となり,観測点での波の振幅はこれらの波源か らの寄与の重ね合わせとなる.
|
||||
|
||||
### 7.2: 二重スリット
|
||||
|
||||
2. 二重スリット(幅は $d \ll a, \lambda)$ による干渉:強 め合う角 $\varphi_{\max }=\arcsin (n \lambda / d), n \in \mathbb{Z} . I \propto$ $\cos ^2\left(k \frac{a}{2} \sin \varphi\right),(k=2 \pi / \lambda)$
|
||||
|
||||
### 7.3: 単スリット-弱め合う角
|
||||
|
||||
3. 単スリット:弱め合う角: $\varphi_{\text {min }}=\arcsin (n \lambda / d), n \in$ $\mathbb{Z}, n \neq 0$. 中央の強め合う部分は $n=\pm 1$ の間である ことに注意せよ. $I \propto \sin ^2\left(k \frac{d}{2} \sin \varphi\right) / \sin \varphi$
|
||||
|
||||
### 7.4: 回折格子
|
||||
|
||||
4. 回折格子:主な強め合う角はポイント 2 と同じで, 主 な強め合う角の幅は $d$ を回折格子の正味の長さとすれ ばポイント 3 と同じ. $n$ 番目の明線のスペクトルの分 解能は,溝の総数を $N$ 本として $\frac{\lambda}{\Delta \lambda}=n N$.
|
||||
|
||||
### 7.5: 分光器の分解能
|
||||
|
||||
5. 分光器の分解能 : 最短の光線と最長の光線の光学距離 の差を $L$ として, $\frac{\lambda}{\Delta \lambda}=\frac{L}{\lambda}$.
|
||||
|
||||
### 7.6: プリズムの分解能
|
||||
|
||||
7. プリズムの分解能 $: \frac{\lambda}{\Delta \lambda}=a \frac{\mathrm{d} n}{\mathrm{~d} \lambda}$
|
||||
|
||||
### 7.7: 角度距離
|
||||
|
||||
7. 理想的な望遠鏡 (レンズ) で 2 点を解像するときの角度距離 : $\varphi \approx 1.22 \lambda / d$. この角度では, 一方の点の中 心が他方の点の最初の回折最小值に当たる.
|
||||
|
||||
### 7.8: Bragg の法則
|
||||
|
||||
8. Bragg の法則:間隔が $d$ の平行な結晶面の組は, $2 d \sin \theta=n \lambda$ ならば $\mathrm{X}$ 線を反射する. ここで $\theta$ は結 晶面と X 線がなす角 (かすめ角).
|
||||
|
||||
### 7.9: 高密度電体媒質反射
|
||||
|
||||
9. 光学的に高密度な誘電体媒質による反射 : 位相が $\pi$ ず れる. 半透明の薄膜では $\phi_{\rightarrow}+\phi_{\leftarrow}=\pi$. ここで $\phi_{\rightarrow}$ と $\phi_{\leftarrow}$ は反射波と透過波の位相差(矢印は入射方向を 示す)
|
||||
|
||||
### 7.10: Fabry-Pérot 干渉計
|
||||
|
||||
10. Fabry-Pérot 干渉計 : 高い反射率 $r(1-r \ll 1)$ を持 つ 2 枚の平行な半透明の鏡. 分解能は $\frac{\nu}{\Delta \nu} \approx \frac{2 a}{\lambda(1-r)}$. 5 つの平面波 (干渉計の前で左右に進む波, 内部を左右 に進む波,後ろを進む波)を設定して境界条件を課す ことで,透過スペクトルを求められる.
|
||||
|
||||
### 7.11: コヒーレントな電磁波
|
||||
|
||||
11. コヒーレントな電磁波: 電場をベクトル为で表し, ベク トル間の角度を位相差とする. 屈折率が $n=n(\omega)=$ $\sqrt{\varepsilon(\omega)}$ (普通 $\mu \approx 1$ ) であることに注意せよ. エネ ルギー流密度(単位面積を通過する単位時間あたりの エネルギー): $I=c n \varepsilon_0 E^2=\frac{c}{n \mu_0} B^2(E$ と $B$ は実 効值)
|
||||
|
||||
### 7.12: Malus の法則
|
||||
|
||||
12. Malus の法則 : 直線偏光が角度 $\varphi$ で偏光板を通過する と $I=I_0 \cos ^2 \varphi$
|
||||
|
||||
### 7.13: 1/4 波長版
|
||||
|
||||
13. $1 / 4$ 波長版 : 直線偏光成分間の位相が $\pi / 2$ ずれる.
|
||||
|
||||
### 7.14: Brewster 角
|
||||
|
||||
14. Brewster 角: 入射角が $\tan \varphi=n$ を満たすとき, 反 射波と屈折波が垂直になり反射波は直線偏光となる.
|
||||
|
||||
### 7.15: 光学素子による回折
|
||||
|
||||
15. 光学素子による回折 : レンズやプリズムなどを通る光 の光学距離を計算する必要はなく, 図形的に考える. 例えば,双プリズムは二重スリットによる回折と同じ 回折をする.
|
||||
|
||||
### 7.16: 光ファイバー <Badge type="tip" text="supplemental" />
|
||||
|
||||
17. 光ファイバー:Mach-Zehnder 干渉計は二重スリッ トによる干渉と, 円形共振器は Fabry-Pérot 干渉計 と似ている. Bragg フィルターは $\mathrm{X}$ 線の場合と同 じように働く. シングルモードの光ファイバーでは, $\Delta n / n \approx \frac{1}{2}(\lambda / d)^2$.
|
||||
73
docs/academic/physics/ipho-formulas-jpn/8.md
Normal file
@ -0,0 +1,73 @@
|
||||
# Formulas for IPhO 日本語版: Section 8
|
||||
|
||||
## 8: 電気回路
|
||||
|
||||
### 8.1: V=I R, P=V I
|
||||
|
||||
1. $V=I R, P=V I$
|
||||
$$
|
||||
R_{\text {直列 }}=\sum R_i, R_{\text {並列 }}^{-1}=\sum R_i^{-1}
|
||||
$$
|
||||
|
||||
### 8.2: Kirchhoff の法則
|
||||
|
||||
2. Kirchhoff の法則 :
|
||||
$$
|
||||
\sum_{\substack{\text { 節点 }}} I=0, \sum_{\text {閉路 }} V=0
|
||||
$$
|
||||
|
||||
### 8.3: ポイント 2 の方程式を減らすために
|
||||
|
||||
3. ポイント 2 の方程式を減らすために: 節点電位法. ルー プ電流法. 等価回路 (3 端子の場合 $\Rightarrow \triangle 又$ 又 $Y$ の形, 起電力のある 2 端子の場合 $\Rightarrow$ 抵抗と電池の直列)
|
||||
|
||||
### 8.4: 無限につながる抵抗
|
||||
|
||||
4. 無限につながる抵抗 : 無限に続く格子の隣り合う節点 間で,自己相似性を使う。鏡像法の一般化された方法.
|
||||
|
||||
### 8.5: 交流回路
|
||||
|
||||
5. 交流回路: $R$ を $Z$ に置き換えてポイント $1 \sim 4$ を用 いる.
|
||||
$$
|
||||
\begin{gathered}
|
||||
Z_R=R, Z_C=1 / i \omega C, Z_L=i \omega L \\
|
||||
\varphi=\arg Z, V_{\text {eff }}=|Z| I_{\text {eff }} \\
|
||||
P=|V||I| \cos (\arg Z)=\sum I_i^2 R_i
|
||||
\end{gathered}
|
||||
$$
|
||||
|
||||
### 8.6: 特性時間
|
||||
|
||||
6. 特性時間: $\tau_{R C}=R C, \tau_{L R}=L / R . \omega_{L C}=$ $1 / \sqrt{L C}$. 定常的な電流分布への緩和は指数関数的で $\propto e^{-t / \tau}$
|
||||
|
||||
### 8.7: 電気回路のエネルギー保存則
|
||||
|
||||
8. 電気回路のエネルギー保存則 : $\Delta W+Q=q V$. ここ で $q$ は電圧降下 $V$ を通った電気量で, 電源のする仕事 は $A=q V_{\mathrm{emf}}$
|
||||
|
||||
### 8.8: コンデンサーの位置エネルギー式
|
||||
|
||||
8. コンデンサーの位置エネルギー式:
|
||||
$W_C=C V^2 / 2, W_L=L I^2 / 2$.
|
||||
|
||||
### 8.9: 磁束密度
|
||||
|
||||
9. $V_{\mathrm{emf}}=-\mathrm{d} \Phi / \mathrm{d} t=\mathrm{d}(L I) / \mathrm{d} t, \Phi=B S$.
|
||||
|
||||
### 8.10: 非線形素子
|
||||
|
||||
10. 非 線形素子: $V-I$ グラフでの非線形曲線と Ohm/Kirchhoff の法則を表す直線との交点として 为形的に解を求める. 複数の交点があれば安定性を調 ベる. いくつかの解は普通安定でない.
|
||||
|
||||
### 8.11: 短時間と長時間の極限を利用
|
||||
|
||||
11. 短時間と長時間の極限を利用する: $t_{\text {observation }} \gg$ $\tau_{R C}$ or $\tau_{L R}$ ならば, $I_C \approx 0(C$ は断線している)又 は $V_L \approx 0$ ( $L$ は短絡している)のような準平衡状態に 達する. $t_{\text {observation }} \ll \tau_{R C}$ or $\tau_{L R}$ ならば, $C$ の電 気量の変化や $L$ での電流の変化は小さく, $\Delta Q \ll Q$ や $\Delta I \ll I$. 即ち $C$ は短絡していて $L$ は断線して いる.
|
||||
|
||||
### 8.12: 推論
|
||||
|
||||
12. $L \neq 0$ ならば, $I(t)$ は連続.
|
||||
|
||||
### 8.13: 超電導の回路
|
||||
|
||||
13. 超電導の回路について, 磁束 $\Phi=$ const.. 特に, 外部 磁場が無ければ $L I=$ const.
|
||||
|
||||
### 8.14: 相互誘導
|
||||
|
||||
14. 相互誘導 : 回路 1 を通る磁束は $\Phi_1=L_1 I_1+L_{12} I_2$ ( $I_2$ は回路 2 を流れる電流) で, $L_{12}=L_{21} \equiv M$ と $M \leq \sqrt{L_1 L_2}$ が成立.
|
||||
109
docs/academic/physics/ipho-formulas-jpn/9.md
Normal file
@ -0,0 +1,109 @@
|
||||
# Formulas for IPhO 日本語版: Section 9
|
||||
|
||||
## 9: 電磁気学
|
||||
|
||||
### 9.1: Coulomb の法則
|
||||
|
||||
1. $F=k q_1 q_2 / r^2, U=k q_1 q_2 / r$ で, Kepler の法則が 使える ([Section 12 参照](12.md)).
|
||||
|
||||
### 9.2: Gauss の法則
|
||||
|
||||
2. Gauss の法則 : $\oint \boldsymbol{B} \cdot \mathrm{d} \boldsymbol{S}=0$,
|
||||
|
||||
$$
|
||||
\oint \varepsilon \boldsymbol{E} \cdot \mathrm{d} \boldsymbol{S}=Q, \oint \boldsymbol{g} \cdot \mathrm{d} \boldsymbol{S}=-4 \pi G M
|
||||
$$
|
||||
|
||||
### 9.3: 循環定理
|
||||
|
||||
3. 循環定理 :
|
||||
|
||||
$$
|
||||
\oint \boldsymbol{E} \cdot \mathrm{d} \boldsymbol{l}=0(=\dot{\Phi}), \oint \frac{\boldsymbol{B} \cdot \mathrm{d} \boldsymbol{l}}{\mu}=I, \oint \boldsymbol{g} \cdot \mathrm{d} \boldsymbol{l}=0
|
||||
$$
|
||||
|
||||
### 9.4: 電流素片により生じる磁束密度
|
||||
|
||||
4. 電流素片により生じる磁束密度 :
|
||||
$$
|
||||
\mathrm{d} \boldsymbol{B}=\frac{\mu I}{4 \pi} \frac{\mathrm{d} \boldsymbol{l} \times \boldsymbol{e}_r}{r^2} .
|
||||
$$
|
||||
したがって電流 $I$ が流れる円形回路の中心では $B=\frac{\mu_0 I}{2 r}$.
|
||||
|
||||
### 9.5: ローレンツ力
|
||||
|
||||
5. $\boldsymbol{F}=e(\boldsymbol{E}+\boldsymbol{v} \times \boldsymbol{B}), \boldsymbol{F}=\boldsymbol{I} \times \boldsymbol{B} l$.
|
||||
|
||||
### 9.6: Gauss の定理と循環定理より
|
||||
|
||||
6. Gauss の定理と循環定理より:帯電した導線について $E=\frac{\sigma}{2 \pi \varepsilon_0 r}$, 電流が流れる導線について $B=\frac{\mu_0 I}{2 \pi r}$. 帯電した面について $E=\frac{\sigma}{2 \varepsilon_0}$, 電流が流れる面につい て $B=\frac{\mu_0 i}{2}$. 一様に帯電した球殼(又は無限に長い円 筒)の内部で $E=0$, 軸に沿って表面に電流が流れる 円筒の内部で $B=0$. 密度 $\rho$ で一様に帯電, 又は一様 な電流 $\boldsymbol{i}$ が流れる, 球 $(d=3) /$ 円柱 $(d-2) /$ 平面 $(d=1)$ の内部で,
|
||||
$$
|
||||
\boldsymbol{E}=\frac{\rho}{\varepsilon d} \boldsymbol{r}, \boldsymbol{B}=\frac{1}{\mu d} \boldsymbol{i} \times \boldsymbol{r}
|
||||
$$
|
||||
|
||||
### 9.7: 長いソレノイド
|
||||
|
||||
7. 長いソレノイド: 内部で $B=\mu n I$, 外部で $B=0$. 磁束 $\Phi=N B S\left(n=\frac{N}{l}\right)$. インダクタンス $L=$ $\Phi / I=\mu n^2 V$. 短いソレノイド $: B_{\|}=\frac{\mu n I \Omega}{4 \pi}(\Omega$ は 立体角).
|
||||
|
||||
### 9.8: 磁場を小型コイルや衝撃検流計で測定する
|
||||
|
||||
9. 磁場を小型コイルや衝撃検流計で測定する: $q=$ $\int \frac{V}{R} \mathrm{~d} t=N S \Delta B / R$.
|
||||
|
||||
### 9.9: 静電場のエネルギー
|
||||
|
||||
9. 静電場のエネルギー:
|
||||
$$
|
||||
U=k \sum_{i<j} \frac{q_i q_j}{r_{i j}}=\frac{1}{2} \int \phi(\boldsymbol{r}) \mathrm{d} q, \mathrm{~d} q=\rho(\boldsymbol{r}) \mathrm{d} V
|
||||
$$
|
||||
|
||||
### 9.10: 一様に帯電した球面や円筒面の各部分の間に働く力
|
||||
|
||||
10. 一様に帯電した球面や円筒面の各部分の間に働く力 : 帯電による力を静水圧による力に置き換える.
|
||||
|
||||
### 9.11: 全ての電荷
|
||||
|
||||
12. 全ての電荷が距離 $r$ にある場合(例えば,不均一に帯 電した球やリングの中心) $\phi \phi=k Q / r$
|
||||
|
||||
### 9.12: 外部電荷
|
||||
|
||||
13. 外部電荷によって引き起こされる正味の電荷(又は電 位)を求めるには, 電荷を「出現」させて問題を対称的 にし,重ね合わせの原理を用いる.
|
||||
|
||||
### 9.14: 導体
|
||||
|
||||
14. 導体は電荷や電場を遮蔽する.例えば,中空の球体の 内部の電荷分布は外から見えない(あたかも $Q$ という 電荷を持った導電性の球があるように見える).
|
||||
|
||||
### 9.15: 静電容量
|
||||
|
||||
15. 静電容量: $C=\varepsilon S / d$ (平板), $4 \pi \varepsilon r$ (球), $2 \pi \varepsilon l(\ln R / r)^{-1}$ (同軸円筒).
|
||||
|
||||
### 9.16: 双極子モーメント
|
||||
|
||||
16. 双極子モーメント:
|
||||
|
||||
$$
|
||||
\boldsymbol{p}_e=\sum q_i \boldsymbol{r}_i=q \boldsymbol{d}, \boldsymbol{p}_\mu=I \boldsymbol{S}
|
||||
$$
|
||||
|
||||
### 9.17: 双極子場
|
||||
|
||||
17. 双極子場 : $\phi=k \boldsymbol{p} \cdot \boldsymbol{e}_r / r^2, E, B \propto r^{-3}$
|
||||
|
||||
### 9.18: 双極子に働く力
|
||||
|
||||
19. 双極子に働く力 : $F=\left(\boldsymbol{p}_e \cdot \boldsymbol{E}\right)^{\prime}, F=\left(\boldsymbol{p}_\mu \cdot \boldsymbol{B}\right)^{\prime}$ [訳 者注 : ここの微分はむしろ $\operatorname{grad}$ である]. 2 つの双極 子間の相互作用 $: F \propto r^{-4}$.
|
||||
|
||||
### 9.19: 磁気双極子としての点電荷
|
||||
|
||||
19. 磁気双極子としての点電荷 : $p_\mu \propto \Phi \propto v_{\perp}^2 / B$ は断熱 不変量 ([Section 4: #22](4#_4-22-断熱不変量) 参照).
|
||||
|
||||
### 9.20: 鏡像法
|
||||
|
||||
20. 鏡像法 : 接地された(磁石の場合は超電導の)平面が鏡 の役割をする. 接地された(又は孤立した)球体の場 は, 球体の内部にある 1 つ(又は 2 つ)の架空の電荷 のつくる場として求められる. 平面導波管(金属板の 間のスリット)内の場は, 電磁平面波の重ね合わせと して求められる.
|
||||
|
||||
### 9.21: 一様(電)場中の球 (円柱) の分極
|
||||
|
||||
21. 一様(電)場中の球 (円柱) の分極 : $(+\rho$ と $-\rho$ に一 様に帯電した球 (円柱) の重ね合わせで, $d \propto E$.
|
||||
|
||||
### 9.22: 渦電流
|
||||
|
||||
22. 渦電流: 電流損失密度 $\approx B^2 v^2 / \rho .1$ 回の通過で与え られる運動量 : $F \tau \approx B^2 a^3 d / \rho$ (ここで $d$ は厚さ, $a$ は大きさ).
|
||||
37
docs/academic/vocabulary/2023/02/2023-02-27.md
Normal file
@ -0,0 +1,37 @@
|
||||
---
|
||||
title: '2023-2-27: Vocabulary'
|
||||
description: 'Vocabulary list collected for 2023-2-27'
|
||||
---
|
||||
|
||||
# 2023-2-27: Vocabulary
|
||||
|
||||
> This table of vocabularies are from "Sadlier Vocabulary Workshop-Level G (Unit 4)" with their corresponding textbook definitions and part of speeches (from some of them) made into a collection.
|
||||
|
||||
| Vocabulary | Definition |
|
||||
| ------------- | --------------------------------------------------------------------------------------------------------------- |
|
||||
| Atrophy | (n.) the wasting away of a body organ or tissue; any progressive decline or failure; (v.) to waste away |
|
||||
| Bastion | A fortified place, stronghold |
|
||||
| Concord | A state of agreement, harmony, unanimity; a treaty, pact, covenant |
|
||||
| Consummate | (adj.) complete or perfect in the highest degree; (v.) to bring to a state of completion or perfection |
|
||||
| Disarray | (n.) disorder, confusion; (v.) to throw into disorder |
|
||||
| Exigency | Urgency, pressure; urgent demand, pressing need; an emergency |
|
||||
| Flotsam | Floating debris; homeless, impoverished people |
|
||||
| Frenetic | Frenzied, highly agitated |
|
||||
| Glean | To gather bit by bit; to gather small quantities of grain left in a field by the reapers. |
|
||||
| Grouse | (n.) A type of game bird; a complaint; (v.) to complain, grumble |
|
||||
| Incarcerate | To imprison, confine, jail |
|
||||
| Incumbent | (adj.) obligatory, required; (n.) one who holds a specific office at the time spoken of |
|
||||
| Jocular | Humorous, jesting, jolly, joking |
|
||||
| Ludicrous | Ridiculous, laughable, absurd |
|
||||
| Mordant | Biting or caustic in thought, manner, or style; sharply or bitterly harsh. |
|
||||
| Nettle | (n.) a prickly or stinging plant; (v.) to arouse displeasure, impatience, or anger; to vex or irritate severely |
|
||||
| Pecuniary | Consisting of or measured in money; of or related to money |
|
||||
| Pusillanimous | Contemptibly cowardly or mean-spirited |
|
||||
| Recumbent | In a reclining position, lying down, in the posture of one sleeping or resting. |
|
||||
| Stratagem | A scheme to outwit or deceive an opponent or to gain and end. |
|
||||
|
||||
::: tip Reference
|
||||
|
||||
- "Sadlier Vocabulary Workshop- Level G (Unit 4)." kensiezoe. Quizlet, n.d. https://quizlet.com/cn/732875555/sadlier-vocabulary-workshop-level-g-unit-4-flash-cards/
|
||||
|
||||
:::
|
||||
1
docs/academic/vocabulary/index.md
Normal file
@ -0,0 +1 @@
|
||||
# Welcome to My Vocabulary List!
|
||||
52
docs/getting-started.md
Normal file
@ -0,0 +1,52 @@
|
||||
---
|
||||
title: Git push results in "Authentication Failed”
|
||||
author: Anda Toshiki
|
||||
date: 2023/2/21/ 10:54
|
||||
editLink: true
|
||||
lastUpdated: true
|
||||
showFooter: true
|
||||
---
|
||||
|
||||
# Git push results in "Authentication Failed”
|
||||
|
||||
## Issue
|
||||
|
||||
```bash
|
||||
$ git push
|
||||
Username for 'https://github.com': ${{ GITHUB_USERNAME }}
|
||||
Password for 'https://andatoshiki@github.com': ${{ GITHUB_PASSWORD }} # or GitHub personal access token
|
||||
remote: Invalid username or password.
|
||||
fatal: Authentication failed for 'https://github.com/andatoshiki/andatoshiki.git/'
|
||||
```
|
||||
|
||||
`git push` to GitHub remote branch failed via https protocol
|
||||
|
||||
## Solution
|
||||
|
||||
### Solution 1
|
||||
|
||||
> If you enabled two-factor authentication in your GitHub account you won't be able to push via HTTPS using your accounts password. Instead you need to generate a personal access token. This can be done in the application settings of your GitHub account. Using this token as your password should allow you to push to your remote repository via HTTPS. Use your username as usual.
|
||||
|
||||
You may also need to update the origin for your repository if it is set to HTTPS. Do this to switch to SSH:
|
||||
|
||||
```bash
|
||||
$ git remote -v
|
||||
$ git remote set-url origin git@github.com:$USERNAME/$REPONAME.git
|
||||
```
|
||||
|
||||
### Solution 2
|
||||
|
||||
GitHub username & password/access token mismatched due to prior temporary Git config setup → Reset Git global username & email config or in current repository
|
||||
|
||||
**To set your global username/email configuration:**
|
||||
|
||||
1. Open the command line.
|
||||
2. Set your username: `git config --global user.name "FIRST_NAME LAST_NAME"`
|
||||
3. Set your email address: `git config --global user.email "MY_NAME@example.com"`
|
||||
|
||||
**To set repository-specific username/email configuration:**
|
||||
|
||||
1. From the command line, change into the repository directory.
|
||||
2. Set your username: `git config user.name "FIRST_NAME LAST_NAME"`
|
||||
3. Set your email address: `git config user.email "MY_NAME@example.com"`
|
||||
4. Verify your configuration by displaying your configuration file: `cat .git/config`
|
||||
118
docs/index.md
Normal file
@ -0,0 +1,118 @@
|
||||
---
|
||||
layout: home
|
||||
|
||||
title: Toshiki's Notebook
|
||||
titleTemplate: Eternal digital knowledge base for content craetion and notes management.
|
||||
|
||||
hero:
|
||||
name: Toshiki's Notebook
|
||||
text: Research & Produce
|
||||
tagline: 👨💻 Eternal & digital knowledge base for content craetion and notes management.
|
||||
image:
|
||||
src: /logos/logo.svg
|
||||
alt: Home logo
|
||||
actions:
|
||||
- theme: brand
|
||||
text: 👉 Start Reading
|
||||
link: /getting-started
|
||||
- theme: alt
|
||||
text: '🗒️ View on GitHub'
|
||||
link: https://github.com/Charles7c/charles7c.github.io
|
||||
|
||||
features:
|
||||
- icon: 🕒
|
||||
title: Tempus Fugit
|
||||
details: Tempus Fugit, which means "time flies" in Latin, is a phrase that highlights the fact that every person has the same 24 hours per day to learn. However, this time is never enough to learn everything. That's why recording knowledge for review is essential.
|
||||
- icon: ☕
|
||||
title: Carpe Diem
|
||||
details: Carpe Diem, take it slow, seize the day and savor its moments. Enjoy a cup of coffee while playing blues on a 1980s-style CD player. Turn off the lights, close the curtains, and let the small lamp illuminate the space. The time is yours, relish the day, and unleash the productivity while learning.
|
||||
- icon: 💡
|
||||
title: Epiphania
|
||||
details: An epiphany, derived from the Latin word "epiphania," is a moment of sudden and brilliant realization or insight. These moments of clarity and inspiration are precious and should be treated as such; to ensure that we don't forget these valuable ideas.
|
||||
---
|
||||
|
||||
<script setup>
|
||||
import { VPTeamMembers } from 'vitepress/theme'
|
||||
|
||||
const khanacademySVG = {
|
||||
svg: '<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Khan Academy</title><path d="M21.724 4.973L13.418.328a3.214 3.214 0 0 0-2.828 0L2.276 4.973A3.05 3.05 0 0 0 .862 7.371v9.256a3.05 3.05 0 0 0 1.414 2.4l8.306 4.645a3.214 3.214 0 0 0 2.828 0l8.314-4.645a3.05 3.05 0 0 0 1.414-2.4V7.373a3.05 3.05 0 0 0-1.414-2.4zM12 4.921a2.571 2.571 0 1 1 .001 5.143A2.571 2.571 0 0 1 12 4.92zm3.094 13.627a9.119 9.119 0 0 1-3.103.549 8.972 8.972 0 0 1-3.076-.55 8.493 8.493 0 0 1-5.486-7.987v-.857c4.646.017 8.074 3.823 8.074 8.51v.198h.926v-.197c0-4.688 3.445-8.51 8.056-8.51.026.29.043.582.086.856a8.502 8.502 0 0 1-5.477 7.988z"/></svg>'
|
||||
}
|
||||
|
||||
const members = [
|
||||
{
|
||||
avatar: "/logos/khancademy.svg",
|
||||
name: "Khan Academy",
|
||||
title: "Khan Academy is a non-profit educational organization that provides free online learning resources.",
|
||||
links: [
|
||||
{ icon: "github", link: "https://github.com/Khan" },
|
||||
{ icon: khanacademySVG, link: "https://khanacademy.org" }
|
||||
],
|
||||
},
|
||||
{
|
||||
avatar: "/logos/khancademy.svg",
|
||||
name: "Khan Academy",
|
||||
title: "Khan Academy is a non-profit educational organization that provides free online learning resources.",
|
||||
links: [
|
||||
{ icon: "github", link: "https://github.com/Khan" },
|
||||
{ icon: khanacademySVG, link: "https://khanacademy.org" }
|
||||
],
|
||||
},
|
||||
{
|
||||
avatar: "/logos/khancademy.svg",
|
||||
name: "Khan Academy",
|
||||
title: "Khan Academy is a non-profit educational organization that provides free online learning resources.",
|
||||
links: [
|
||||
{ icon: "github", link: "https://github.com/Khan" },
|
||||
{ icon: khanacademySVG, link: "https://khanacademy.org" }
|
||||
],
|
||||
},
|
||||
{
|
||||
avatar: "/logos/khancademy.svg",
|
||||
name: "Khan Academy",
|
||||
title: "Khan Academy is a non-profit educational organization that provides free online learning resources.",
|
||||
links: [
|
||||
{ icon: "github", link: "https://github.com/Khan" },
|
||||
{ icon: khanacademySVG, link: "https://khanacademy.org" }
|
||||
],
|
||||
},
|
||||
{
|
||||
avatar: "https://avatars.githubusercontent.com/u/5837277?v=4",
|
||||
name: "Knut Sveidqvist",
|
||||
title: "Creator",
|
||||
links: [{ icon: "github", link: "https://github.com/knsv" }],
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
<div class="vp-doc" >
|
||||
<h2 id="meet-the-team"> 👀 My Learning Platforms </h2>
|
||||
<VPTeamMembers size="small" :members="members" />
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.image-container .image-src {
|
||||
margin: 1rem auto;
|
||||
/* max-width: 100%;
|
||||
width: 100%; */
|
||||
}
|
||||
|
||||
.dark .image-src{
|
||||
filter: invert(1) hue-rotate(217deg) contrast(0.72);
|
||||
}
|
||||
|
||||
.vp-doc {
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
display: flex;
|
||||
margin: 1.5rem;
|
||||
}
|
||||
|
||||
.vp-doc h2 {
|
||||
margin: 48px 0 16px;
|
||||
border-top: 1px solid var(--vp-c-divider-light);
|
||||
padding-top: 24px;
|
||||
letter-spacing: -.02em;
|
||||
line-height: 32px;
|
||||
font-size: 24px;
|
||||
}
|
||||
</style>
|
||||
213
docs/javascript/notes/1/1-1.md
Normal file
@ -0,0 +1,213 @@
|
||||
---
|
||||
title: '1-1: Values'
|
||||
description: 'Chapter 1-1 notes on values'
|
||||
---
|
||||
|
||||
# 1-1: Values
|
||||
|
||||
## 1-1-1: Numbers <Badge type="danger" text="must know" />
|
||||
|
||||
Values of the _number_ type are numeric values, normally written as follows,
|
||||
|
||||
```js
|
||||
144
|
||||
```
|
||||
|
||||
- Put this into a program, it will cause the number 144 to come into existence inside the computer, with the following bash script, 144 might looks like this in bits,
|
||||
|
||||
```js
|
||||
0100000001100010000000000000000000000000000000000000000000000000
|
||||
```
|
||||
|
||||
- With the following bash script, 144 will be converted into binary values in integer form,
|
||||
|
||||
```sh
|
||||
ip1=144 # defines a variable named ip1, with the value of 10
|
||||
echo "obase=2;$ip1" | bc # convert the value to binary via bc
|
||||
```
|
||||
|
||||
- The variable `ip1` is assigned the value 144.
|
||||
- The `echo` command prints out the string "obase=2;144", where "obase=2;" is an argument for `bc` that tells it to output the result in base 2 (binary), and "10" is the decimal number we want to convert.
|
||||
- The output of the `echo` command is piped (using the `|` character) to `bc`, which takes the input "`obase=2;144`" and interprets it as a command to convert the number 10 to binary.
|
||||
- Finally, the binary equivalent of 144, which is "10010000", is printed to the terminal.
|
||||
|
||||
::: tip
|
||||
|
||||
But the standard describes JavaScript numbers as 64-bit floating-point values, which indicates fractions and exponents are available.
|
||||
|
||||
:::
|
||||
|
||||
Not all whole numbers $10^{19}$ fit in a JavaScript number. There are also negative numbers, so one of the bits has to be used to store the sign of the number.
|
||||
|
||||
- 11 bits are used to store the position of the decimal dot within the number.
|
||||
- 52 bits, any whole number less than $2^{52}$, which is more than $10^{15}$ will safely fit in a JavaScript number, numbers we are using stay well below that.
|
||||
|
||||
Fractional numbers are written by using a dot,
|
||||
|
||||
```js
|
||||
9.81
|
||||
```
|
||||
|
||||
For extreme huge or tiny numbers, we can also use "scientific" notion by adding an `e`, followed by the exponent of the number,
|
||||
|
||||
```js
|
||||
2.998e8
|
||||
```
|
||||
|
||||
This indicates $2.998 \times 10^8 = 29980000$.
|
||||
|
||||
Calculations with whole numbers (referred as _integers_) that fits into 52 bits are guaranteed to be always precise, but calculation with fraction numbers are generally not.
|
||||
|
||||
- Such as $\pi$ cannot be precisely expressed by a finite amount of decimal digits, **thus many numbers lose some precision when only 64 bits are available to store them.**
|
||||
|
||||
::: details 1-1-1: Numbers review
|
||||
|
||||
- 64 bits: A 64-bit number is a binary sequence of 64 bits, which can represent $2^{64}$ (18,446,744,073,709,551,616) different values. This is commonly used for representing memory addresses and integers with large values in computer systems.
|
||||
- 11 bits: An 11-bit number is a binary sequence of 11 bits, which can represent $2^{11}$ (2,048) different values. This is often used in computer systems for encoding small integers, such as color values in images.
|
||||
- 52 bits: A 52-bit number is a binary sequence of 52 bits, which can represent $2^{52}$ (4,503,599,627,370,496) different values. This is often used for representing the significand or mantissa portion of a floating-point number in computer systems.
|
||||
|
||||
:::
|
||||
|
||||
## 1-1-2: Arithmetic
|
||||
|
||||
The main thing to do with numbers is arithmetic. Arithmetic operations such as addition or multiplication take two number values and produce a new number from them, the following is an example of calculation in JavaScript.
|
||||
|
||||
```js
|
||||
100 + 4 * 11
|
||||
```
|
||||
|
||||
- The `+` and `*` symbols are called _operators_.
|
||||
|
||||
- `+` apparently stands for addition while `*` stands for multiplication.
|
||||
|
||||
- This expression indicates the multiplication takes place first then the adding of 100 comes next as a regard to [PEMDAS](<https://www.khanacademy.org/math/cc-sixth-grade-math/x0267d782:cc-6th-exponents-and-order-of-operations/cc-6th-order-of-operations/v/more-complicated-order-of-operations-example#:~:text=The%20order%20of%20operations%20is,(from%20left%20to%20right).>) rules (Order of Operations).
|
||||
|
||||
But we can still overwrite the steps of operation using a parenthesis around the addition,
|
||||
|
||||
```js
|
||||
;(100 + 4) * 11
|
||||
```
|
||||
|
||||
For subtraction, there is the `-` operator, and division can be done with `/`. When operators appear together without parentheses, they are applied is determined by the _precedence_ of the operators.
|
||||
|
||||
- When multiple operators with the same precedence appear next to each other (as `1-2+1`), they are applied left to right (refers to PEMDAS).
|
||||
- Precedence: Priorities.
|
||||
|
||||
::: warning
|
||||
|
||||
When is doubt, don't care about precedence, just add parentheses for order of operation.
|
||||
|
||||
:::
|
||||
|
||||
There is one more arithmetic operator, which is the `%` percent sign used to represent the _modulo_ operation. **The term "X modulo Y" is defined as the remainder of dividing X by Y.**
|
||||
|
||||
- For example, `314 % 100` is `14`, `10 % 3` is `1`, and `144 % 12` is 0 because there are no remainders.
|
||||
- Modulo's precedence is the same as that of multiplication and division.
|
||||
|
||||
::: details 1-2: Arithmetic review
|
||||
|
||||
- All of the operators in JavaScript follows precedence rules, or referred as PEMDAS in conventional math.
|
||||
- `+` and `-` has the same lowest precedence.
|
||||
- `*` , `/` and `%` has the same medium precedence.
|
||||
- `()` has the highest precedence, followed on with brackets.
|
||||
- The symbol `%` refers to "modulo", in mathematical reading, we say "X modulo Y" is the remainder of X over Y.
|
||||
|
||||
:::
|
||||
|
||||
## 1-1-3: Strings
|
||||
|
||||
The next data type is the _string_. Its use is not as evident from its name as with numbers, it also fulfills a very basic role.
|
||||
|
||||
- Strings are used to represent text.
|
||||
- Strings are usually written by enclosing the contents with quotes.
|
||||
|
||||
```js
|
||||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||
```
|
||||
|
||||
::: tip
|
||||
|
||||
**Both single and double quotes** can be used to mark strings
|
||||
|
||||
- As long as the quotes at the start and the end of the string match.
|
||||
|
||||
:::
|
||||
|
||||
Almost anything can be put between quotes, and JavaScript will make a string value out of it. But the followings are tricky to be put between quotes.
|
||||
|
||||
- **Newlines**: The things we get when we press <kbd>enter</kbd> on keyboard. We uses `\n` to represent.
|
||||
- **New tab**: Similarly like newlines, `\t` indicates a new tab being indented.
|
||||
|
||||
Take the following string as an example,
|
||||
|
||||
```js
|
||||
'Lorem ipsum dolor sit amet,\n consectetur adipiscing elit.'
|
||||
```
|
||||
|
||||
The following will be the rendered output,
|
||||
|
||||
```js
|
||||
Lorem ipsum dolor sit amet,
|
||||
consectetur adipiscing elit.
|
||||
```
|
||||
|
||||
::: warning
|
||||
|
||||
But the situations where we want a backslash in a string to just be a backslash instead of a special code. By using `\\` would render the "just slash" to `\` on output, instead of a special character, as follows,
|
||||
|
||||
```js
|
||||
"A newline character is written like \"\\n\"."
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
Strings cannot be divided, multiplied, or subtracted, unlike integers. But the `+` operator can be used on the. It concatenates (glues) the two strings together, the following example will produce the string "`concatenate`".
|
||||
|
||||
```js
|
||||
'con' + 'cat' + 'e' + 'nate'
|
||||
```
|
||||
|
||||
::: details 1-1-3: Strings review
|
||||
|
||||
- Nearly everything could be put into strings in JavaScript
|
||||
- String could be wrapped with `""` double quotation marks or `''` single quotation marks.
|
||||
- There is a tricky situation in JavaScript's string, where `\` backslash followed with a character are being introduced specially by the interpreter, such as `\n` referred as newline, `\t` referred as new tab.
|
||||
- `\\` double backslash will be rendered as a single `\`.
|
||||
- `\&` symbols followed after slash will not contain its original function such as connecting, but will be rendered as `&` on output.
|
||||
|
||||
:::
|
||||
|
||||
### 1-1-3-FR: Further Reading
|
||||
|
||||
From the example given in the prior section with a lot of backslashes, it might be hard to understand the concept on at what time the slash will be rendered and when it will be considered as a special character starter.
|
||||
|
||||
The example is given as,
|
||||
|
||||
```js
|
||||
"A newline character is written like \"\\n\"."
|
||||
```
|
||||
|
||||
The rendered output will be on print,
|
||||
|
||||
```js
|
||||
A newline character is written like "\n".
|
||||
```
|
||||
|
||||
the backslash character (`\`) is used as an escape character to indicate that the following character(s) should be treated specially. In this case, the `"\n"` sequence is an escape sequence that represents a newline character. The backslash before the `n` character tells the JavaScript interpreter that it should treat the `n` as a special character and not just as the letter "n".
|
||||
|
||||
However, if we want to include an **actual backslash character** (`\`), we will have to **escape it** by using to two backslashes `\\`, or else with one single slash the JavaScript interpreter will still determines it as an special operator, Thus `\\` will print `\` on output.
|
||||
|
||||
- **But what about the quotation marks used within the quotation marks that wraps the string? Wouldn't JavaScript interpreter throw error?**
|
||||
|
||||
- In the given JavaScript string, the inner set of double quotation marks (`"\\n"`) is escaped using a backslash (`\`) character. This tells the JavaScript interpreter to treat the inner double quotation marks as a regular character instead of a string delimiter.
|
||||
|
||||
So when the string is rendered on output, the backslash character will be removed and the inner set of quotation marks will be displayed as a regular character. The rendered string will look like this,
|
||||
|
||||
```js
|
||||
'\n'
|
||||
```
|
||||
|
||||
The outer set of double quotation marks in the original string delimit the entire string and will be displayed as regular quotation marks.
|
||||
|
||||
> **Source**: ChatGPT CA (Code Analysis)
|
||||
3
docs/javascript/notes/1/1-2.md
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
title: '1-2'
|
||||
---
|
||||
8
docs/public/logos/khancademy.svg
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="256px" height="276px" viewBox="0 0 256 276" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
|
||||
<g>
|
||||
<path d="M16.2524996,57.1547059 C6.70984964,63.1945026 0.660185591,73.4605992 0,84.7347053 L0,191.114703 C0.660185591,202.388809 6.70984964,212.654905 16.2524996,218.694702 L111.698997,272.081701 C121.951702,277.105311 133.951292,277.105311 144.203997,272.081701 L239.748994,218.694702 C249.291644,212.654905 255.341308,202.388809 256.001494,191.114703 L256.001494,84.7347053 C255.341308,73.4605992 249.291644,63.1945026 239.748994,57.1547059 L144.302497,3.76770718 C134.049792,-1.25590239 122.050202,-1.25590239 111.797497,3.76770718 L16.2524996,57.1547059 Z" fill="#14BF96"></path>
|
||||
<path d="M226.057495,111.526705 C173.064496,111.526705 133.467497,155.457704 133.467497,209.337202 L133.467497,211.602702 L122.829497,211.602702 L122.829497,209.337202 C122.829497,155.457704 83.4294981,111.723705 30.0411256,111.526705 C30.0411256,114.875705 30.0411256,118.323205 30.0411256,121.376704 C29.8270913,162.138126 54.9627136,198.741876 93.0824978,213.178702 C104.410162,217.33234 116.378824,219.466029 128.443997,219.482702 C140.605396,219.466096 152.67111,217.332931 164.100996,213.178702 C202.16354,198.686189 227.244797,162.10445 227.04371,121.376704 C226.549995,118.224705 226.352995,114.875705 226.057495,111.526705 Z" fill="#FFFFFF"></path>
|
||||
<circle fill="#FFFFFF" cx="128.049997" cy="86.1137053" r="29.5499993"></circle>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
BIN
docs/public/logos/logo-308px.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
docs/public/logos/logo-800px.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
docs/public/logos/logo.png
Normal file
|
After Width: | Height: | Size: 540 KiB |
1
docs/public/logos/logo.svg
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
docs/public/logos/og-cover.png
Normal file
|
After Width: | Height: | Size: 172 KiB |
BIN
docs/public/logos/toshiki-notebook-hero-logo-v1.png
Normal file
|
After Width: | Height: | Size: 540 KiB |
48
docs/roadmap.md
Normal file
@ -0,0 +1,48 @@
|
||||
# Theme
|
||||
|
||||
## Homepage
|
||||
|
||||
- [x] Finish three hero action blocks with keywords and its corresponded descriptions.
|
||||
|
||||
- [ ] Finish my learning platform section using SVGs of different online academies from simple icons.
|
||||
|
||||
- Descriptions
|
||||
- Icon in SVG format
|
||||
- Platform name
|
||||
- Linkable SVG icon/button
|
||||
|
||||
- [x] Khan academy
|
||||
- [ ] GitHub
|
||||
- [ ] Libretext
|
||||
- [ ] OpenStax
|
||||
- [ ] BCcampus
|
||||
- [ ] Wikibooks
|
||||
- [ ] Wikipedia
|
||||
- [ ] Bookboon
|
||||
|
||||
## Footer
|
||||
|
||||
- [ ] Footer copyright section new-lining and other additional information designs
|
||||
- Refer to footer of https://status.toshiki.dev
|
||||
|
||||
## Configs
|
||||
|
||||
- [ ] Header configs including different properties and meta configs.
|
||||
- [ ] Complete navigation configuration.
|
||||
- [ ] Navigation divider and text title, line breakings.
|
||||
- Refer to: [mm-notes: `nav.ts`](https://github.com/maomao1996/mm-notes/blob/master/docs/.vitepress/configs/nav.ts).
|
||||
- [ ] Complete sidebar configs for different directories.
|
||||
- [ ] Vitepress sidebar generation plugin for huge bundled clips article directory.
|
||||
|
||||
# Articles
|
||||
|
||||
- [ ] `<head>` tag documentation or guide by [joshbuchea](https://github.com/joshbuchea)/[HEAD](https://github.com/joshbuchea/HEAD).
|
||||
- [ ] Write index page for every directory, **no Chat GPT allowed**.
|
||||
- [ ] Chemistry review notes.
|
||||
- [ ] JavaScript 0-100 notes per chapter.
|
||||
- Marijn Haverbeke - Eloquent JavaScript\_ A Modern Introduction to Programming (2011, No Starch Press)
|
||||
- [ ] Outliers novel clips
|
||||
- [ ] Migrate clipped articles and archives from Notion to Vitepress.
|
||||
- [ ] Fresh copy of "How To Ask Questions The Smart Way" by Eric Steven Raymond
|
||||
- [ ] Reading notes
|
||||
- http://www.catb.org/~esr/faqs/smart-questions.html
|
||||
1
docs/save/reading/index.md
Normal file
@ -0,0 +1 @@
|
||||
# Welcome to Reading Notes
|
||||
65
docs/save/reading/outliers/1.md
Normal file
@ -0,0 +1,65 @@
|
||||
---
|
||||
author: 查尔斯
|
||||
title: 'Introduction & Chapter 1: The Roseto Mystery'
|
||||
description: 'Chapter 1 summary clips from Sparknotes of novel Outliers by Malcom Gladwells'
|
||||
---
|
||||
|
||||
# Introduction & Chapter 1: The Roseto Mystery
|
||||
|
||||
## Summary: Introduction: The Roseto Mystery
|
||||
|
||||
### Section 1.
|
||||
|
||||
In the late 1800s, immigrants from Roseto Valfortore, Italy, came to Pennsylvania to work in the slate quarry near the town of Bangor. The settlers established a new community, named after their old one: Roseto. They built schools, a park, small shops, and more than a dozen factories. They kept to themselves and did not interact much with the predominantly German and English populations of the towns around them.
|
||||
|
||||
In the 1950s, a local doctor told Stewart Wolf, a medical researcher, that hardly anyone in Roseto under age sixty-five had heart disease. Wolf was curious. He did blood draws and EKG scans, and he analyzed physicians’ records and death certificates. Wolf was amazed that almost no one under fifty-five showed any signs of heart disease, which at the time was America’s leading cause of death in men under sixty-five. Wolf enlisted the help of John Bruhn, a sociologist. They found that there was no suicide, alcoholism, or drug addiction in Roseto: everyone seemed to be dying of old age. According to Gladwell, Roseto was an _outlier_.
|
||||
|
||||
### Section 2.
|
||||
|
||||
Wolf was forced to rule out diet and lifestyle as explanations, because the Rosetans had poor eating habits, smoked heavily, and were obese. He ruled out genetics after determining that Rosetans’ relatives in other parts of the country were not in comparably good health. Wolf eventually decided that what made Roseto’s inhabitants so healthy was the town itself—its culture and social structure. Many homes contained three generations living together, and with a population of just two thousand people, there were twenty-two separate civic organizations.
|
||||
|
||||
Wolf and Bruhn were met with a great deal of skepticism. They had to work hard to convince the medical establishment that the values of where we live and the people around us have a significant impact on who we are. Gladwell wants _Outliers_ to do for our understanding of success what Wolf did for our understanding of health.
|
||||
|
||||
## Summary: Chapter One: The Matthew Effect
|
||||
|
||||
### Section 1.
|
||||
|
||||
Gladwell describes a game between two teams in the Canadian Hockey League, the most competitive junior hockey league in the world. Starting at a very young age, players are regularly assessed for talent, so that the best can be separated out and prepared for the next level. The system is designed to be a meritocracy.
|
||||
|
||||
### Section 2.
|
||||
|
||||
Gladwell wants to show that circumstances matter just as much for success as work ethic or intelligence. People often ask about the lifestyle, intelligence, or special talents of successful individuals, but not enough people ask when and where a person grew up. Gladwell likens people to trees: we all know that the tallest trees received the most sunlight, had nutrient-rich soil, and were lucky enough to avoid lumberjacks. He suggests that we study the environmental and social influences that make people successful.
|
||||
|
||||
### Section 3.
|
||||
|
||||
In the 1980s, Canadian psychologist Roger Barnsley observed that on elite Canadian hockey teams, whether youth league or NHL, a disproportionate number of players have birthdays in the first three months of the year.
|
||||
|
||||
### Section 4.
|
||||
|
||||
The explanation for the distribution of birthdays is simple: the cutoff date for an individual’s league assignment is January 1. A player born on January 2 will be 12 months older than one born at the end of December. At the age of nine or ten, this often translates into a huge difference in size, coordination, and maturity. By age ten, coaches regularly pick the oldest and largest potential players for the more competitive “rep squads,” where the players will receive better coaching, have more practice time, and play many more games. By thirteen or fourteen, all of the extra experience and coaching will have actually made the players better, and they will be selected for the more competitive league(s). The same thing happens in American youth baseball and European soccer, but with different cutoff dates.
|
||||
|
||||
The phenomenon is also observable in education. Economists Kelly Bedard and Elizabeth Dhuey found that on math and science tests, the older children in fourth grade regularly score better than the youngest children. This can affect whether a child qualifies for a gifted program. When Bedard and Dhuey extended their analysis to four-year colleges, they found that the students who belonged to the relatively youngest group were underrepresented by more than 10 percent.
|
||||
|
||||
### Section 5.
|
||||
|
||||
The top-level hockey players were given opportunities they neither deserved nor earned. Sociologist Robert Merton called this the “Matthew Effect,” after the verse in the Gospel of Matthew:
|
||||
|
||||
“For unto everyone that hath shall be given, and he shall have abundance. But from that hath not shall be taken away even that which he hath.”
|
||||
|
||||
The successful receive more resources: the best students receive the best teaching, the richest citizens get the biggest tax breaks, the largest kids get the best coaching. Sociologists call this “accumulative advantage.” Gladwell points out that cutoff dates exclude nearly half of the potential athletes from a population. Junior hockey teams in the Czech Republic show the same unbalanced distribution of birthdays as in Canada. If Canada or the Czech Republic separated each of their youth leagues into two separate leagues, one for kids born in the first half of the year, and one for kids born in the second half of the year, they would have twice as many athletes available for their national teams. Similarly, schools could separate kindergarten classes into students born in the first, middle, and last four months of the year. The benefits would justify the added administrative work, but, writes Gladwell, the scheme would run afoul of society’s need to believe that individual merit matters more than the rules society has created.
|
||||
|
||||
### Section 6.
|
||||
|
||||
Gord Wasden, the father of one of the Canadian Hockey League boys from the first section, describes his son. Scott Wasden worked hard to get where he is, but he has also generally had the advantage of being big compared to others on his team. He was born on January 4.
|
||||
|
||||
### Analysis: Introduction: The Roseto Mystery & Chapter 1: The Matthew Effect
|
||||
|
||||
Gladwell's thesis argues that that the idea of rugged, individual success is not accurate. Rather, the most successful person doesn’t thrive without some environmental and social influence plus a dose of good fortune. After laying out the concepts of a meritocracy and suggesting that this is the way that hockey players advance in Canada, he immediately undercuts this idea. Gladwell uses the illustration of birthday distribution as an example of an invisible contributor to the success of hockey players. With a registration cutoff date of January 1, players born from January 2 through March 31 are older than teammates born later in the year. These older players are likely bigger, faster, more coordinated, and more mature. Since the older players are seen as more skilled, they get selected for more advanced leagues with more practice, more games, and higher-quality coaching. By the time these older players reach their early teens, the extra advantages gained from being judged better because of their birthday translate into being better players. Similarly, the age cutoff for school registrations often mistakes maturity for ability. As a result, the older children appear smarter, get put into advanced groups, and qualify for gifted programs. The birthdate bias carries through to college.
|
||||
|
||||
Advantages result in more advantages. Gladwell reinforces this idea with the “Matthew Effect,” which states that "success leads to more success." More simply: by being a little bit better, a hockey player will get opportunities that may result in the player becoming an outlier. Gladwell implies that the systems that determine success are not efficient. He asks readers to question the way we, as a society, think about success. He suggests that changing the systems in athletics and education would chip away at the myth of individual merit as the chief marker of success and help level the playing field. Gladwell's model for this phenomenon is hockey player Scott Wasden. By demonstrating that Scott had the passion, talent, and work ethic for the game, as well as the good luck to be born on January 4, Gladwell reasons that Wasden, like many others he will be profiling, benefit by being both good and lucky.
|
||||
|
||||
::: info Reference
|
||||
|
||||
- “Outliers Introduction & Chapter 1 Summary & Analysis.” SparkNotes, www.sparknotes.com/lit/outliers/section1/.
|
||||
|
||||
:::
|
||||
48
docs/save/reading/outliers/2.md
Normal file
@ -0,0 +1,48 @@
|
||||
---
|
||||
title: 'Chapter Two: The 10,000-Hour Rule'
|
||||
description: 'Summary of Chapter Two: The 10,000-Hour Rule of Outliers from Sparknotes'
|
||||
---
|
||||
|
||||
# Chapter Two: The 10,000-Hour Rule
|
||||
|
||||
## Summary: Chapter Two: The 10,000-Hour Rule
|
||||
|
||||
### Section 1.
|
||||
|
||||
Bill Joy, a co-founder of Sun Microsystems, is one of the most influential computer programmers of all time. Joy attended the University of Michigan, thinking to become a biologist or mathematician, but he became obsessed with the Computer Center that opened during his freshman year. In 1975, he enrolled in graduate school at UC Berkeley. At both schools, Bill Joy spent much of his free time programming. After graduating from Berkeley, he founded Sun Microsystems, eventually rewriting the Java programming language. He would appear to be a good example of success based on individual merit.
|
||||
|
||||
### Section 2.
|
||||
|
||||
If achievement is the combination of talent and preparation, how much does innate talent affect one’s success? In the 1990s, a study at Berlin’s elite Academy of Music determined that, regardless of instrument, all of the world-class students had practiced more than 10,000 hours. They did not find anyone at the top level who spent less time, nor did they find anyone who spent that amount of time who was not successful. Neurologist Daniel Levitin states that, across many fields, world-class expertise is never accomplished in less than 10,000 hours. The law holds even for a prodigy like Mozart, who started composing at age six: he did not compose his first masterwork until he was twenty-one. The youth athletes from the previous chapter who made it to the professional level put in 10,000 hours of practice. And note: individuals cannot normally put in that much practice without help. Most people will need supportive parents, financial stability, and probably a special program—like an all-star youth hockey team.
|
||||
|
||||
### Section 3.
|
||||
|
||||
Bill Joy was certainly intelligent, having achieved a perfect score on the math portion of his Scholastic Aptitude Test. His opportunities, however, were extraordinary. Bill Joy happened to choose a college that had a time-sharing computer available, something that was exceedingly rare during the early 1970s. While most students had to pay for computer time, Bill Joy exploited a bug in the college’s system to gain unlimited access to the Computer Center, which was walking distance from where he lived. He was able to spend almost all of his free time programming, and when he went to Berkeley, he had a terminal at home, where he could program until he fell asleep at his keyboard. Bill Joy was able to accumulate 10,000 hours while in college.
|
||||
|
||||
### Section 4.
|
||||
|
||||
The Beatles are another example of the 10,000-hours principle. In 1960, when they were still a high school rock band, they were given the chance to travel to Hamburg, Germany and play in various strip clubs. The Beatles were contracted to play for hours every night, seven nights a week, and thereby were forced to develop as musicians. After a year and a half, they had performed 270 nights. By 1964, when they first found commercial success, they had performed an estimated twelve hundred times—more than most band bands do in an entire career.
|
||||
|
||||
### Section 5.
|
||||
|
||||
Born in Seattle to affluent parents, Bill Gates was sent to a private school for seventh grade. The school’s Mother’s Club funded the purchase of a time-sharing terminal connected to a mainframe computer in Seattle. As an eighth-grader, Gates was able to start programming. When the Mother’s Club could no longer pay for computing time, Gates was able to continue programming at Information Sciences, Inc. (ISI) through a connection he made with one of the school parents. After that, one of ISI’s founders recommended Gates for a programming project at the Bonneville Power station. Gates was able to leave high school during his senior year to program for the Bonneville Power station as an independent study project. By the time Bill Gates dropped out of Harvard, he was well past 10,000 hours of experience.
|
||||
|
||||
### Section 6.
|
||||
|
||||
In a list of the seventy-five richest people in human history, going as far back as ancient Egypt and converting all wealth estimates into modern U.S. dollars, fourteen names are Americans born within nine years of one another (including John D. Rockefeller and J.P. Morgan). What accounts for the fact that a list that covers thousands of years should have 20 percent of its members so close together? The fourteen Americans happened to live during the 1860s and 1870s, when the American economy was undergoing a huge transformation: the expansion of the railroads and the creation of Wall Street. Gladwell argues that the fourteen names are so close in birth date because they were all the perfect age to seize the opportunities available.
|
||||
|
||||
Bill Joy and Bill Gates were also born at just the right time. In 1975, _Popular Electronics_ ran a cover story about the Altair 8800, a $397 microcomputer kit. Someone born before 1954 would likely already have a job with IBM, working on mainframes. Someone born after 1956 would likely still be in high school. Most of the biggest pioneers in the modern computer industry, including Bill Gates, Bill Joy, Steve Jobs, and Eric Schmidt, were born in 1954 or 1955, as were Joy’s three fellow founders at Sun.
|
||||
|
||||
## Analysis: Chapter Two: The 10,000-Hour Rule
|
||||
|
||||
Gladwell introduces his controversial and widely disputed 10,000 hours rule. Simply put, the rule suggests that to master a skill, an individual needs to practice it for 10,000 hours. Gladwell argues that, like hockey, success in computing requires both skill and luck, rather than pure, simple, natural ability. Gladwell's example is situated at the University of Michigan, specifically the new computer center, in 1971. The story of Bill Joy undermines the idea of success as an inexplicable, miraculous accomplishment. Though Gladwell agrees Joy is bright and talented, Joy also lucks into several happy accidents that allow for increased access. These strokes of luck give Joy the opportunity to become a computer expert. Gladwell's use of a psychological study conducted at the Academy of Music in Berlin, Germany, in the early 1990s forms the crux of his argument in this chapter. However, critics have suggested that this study was flawed and that there is no incontrovertible evidence to suggest that doing anything for 10,000 hours guarantees mastery. Rather, practice is, as Gladwell points out elsewhere throughout the text, just one of the factors in success. However, he also correlates the familial and economic advantages necessary to reach 10,000 of practice time, reinforcing the larger thesis of the book.
|
||||
|
||||
Gladwell argues that the Beatles and Bill Gates are examples of his notion of time spent directly relating to mastery. While detailing how the Beatles reached the 10,000-hour threshold for mastery, Gladwell also highlights the lucky breaks they had in achieving success, like the connection that landed the band in Hamburg’s music scene. Additionally, while Gates has become something of an American folk hero, Gladwell argues that Gates did not reach his great achievements completely on his own. His wealthy family, his lucky interaction with a computer in 1968, and his college experience allowed him far greater access to opportunity. Without this combination of factors, along with his intelligence and drive, Gates would likely not have become a household name. Again, Gladwell reinforces the idea that success comes not only from being good, but from having no small amount of luck, whether that be time, money, or, in an echo of the hockey player example, birthdate.
|
||||
|
||||
Gladwell claims that one important factor of success is the year in which one is born. In terms of wealth, there are 14 Americans, born in a nine-year period of the 1800s, who are among the richest people in history. This suggests that there was some connection to when they were born and the opportunities available to them in terms of innovation and invention, as well as the position they were in to take advantage of the opportunities. Similarly, men born in the same era of Bill Gates were coming of age at the bleeding edge of technology. Proximity to social and technological change, as well as the wealth and connections to take advantage of it, put these men in an advantageous position. Being in the right place at the right time, Gladwell argues, has at least as much to do with success as one's inborn abilities.
|
||||
|
||||
::: info Reference
|
||||
|
||||
- “Outliers Chapter 2 Summary & Analysis.” SparkNotes, www.sparknotes.com/lit/outliers/section2/. Accessed 27 Feb. 2023.
|
||||
|
||||
:::
|
||||
46
docs/save/reading/outliers/3.md
Normal file
@ -0,0 +1,46 @@
|
||||
---
|
||||
title: 'Chapter 3: The Trouble with Geniuses, Part 1'
|
||||
description: 'Chapter 3 summary of novel Outliers from Sparknotes'
|
||||
---
|
||||
|
||||
# Chapter 3: The Trouble with Geniuses, Part 1
|
||||
|
||||
## Summary: Chapter Three: The Trouble with Geniuses, Part 1
|
||||
|
||||
### Section 1.
|
||||
|
||||
Chris Langan appeared on the television trivia show _1 vs. 100_ after being the subject of interviews and at least one documentary, due to his extremely high IQ. He had little difficulty in high school, got a perfect score on his SAT, and read through _Principia Mathematica_ as a teenager. On _1 vs. 100_, Langan cashed out with winnings of $250,000.
|
||||
|
||||
### Section 2.
|
||||
|
||||
Shortly after World War I, Lewis Terman, creator of the widely used Stanford-Binet IQ test, became fascinated with child prodigies. In 1921, he identified exceptionally gifted 1,470 students who came to be known as the “Termites.” Terman kept track of them over the years, carefully cataloging their educational achievement, marriages, psychological health, and employment. Terman was sure that the Termites would be the future elite of the United States. The same confidence underlies the use of IQ-like tests, such as the SAT, to assess applicants at Ivy League schools and corporations such as Microsoft and Google. Gladwell states that Terman was wrong about the Termites, and if he had met Chris Langan as a teenager, he would have been wrong about him, too.
|
||||
|
||||
### Section 3.
|
||||
|
||||
Gladwell gives two examples—one easy and one much harder—of questions that use visual puzzles to test IQ, without requiring any language abilities or specific factual knowledge. The average human will score 100. Those scoring below 70 are considered mentally disabled, and those who are successful in graduate programs likely have an IQ of 115 or higher. According to Gladwell, however, above 120 IQ makes little or no difference to success. A similar point applies to basketball: height is certainly an advantage, but there is, at best, modest value in being six foot seven instead of six foot six. A basketball player just needs to be tall _enough_.
|
||||
|
||||
A list of the last twenty-five Americans to win a Nobel Prize in Medicine includes graduates of prestigious schools, such as Columbia, Harvard, and MIT, but also graduates of DePauw, Holy Cross, and Gettysburg College. Similarly, there have been American Nobel laureates in Chemistry from Harvard and MIT, but also from Notre Dame and the University of Illinois. Harvard might have more intelligent students, but many other colleges have students smart _enough_ to win a Nobel.
|
||||
|
||||
At the University of Michigan law school, around 10 percent of students are racial minorities. Without affirmative action, there would be less than 3 percent. Looking at career performance after graduation, Michigan found no difference between white and minority graduates. Minority students come into law school with weaker academic credentials than their white counterparts, but they are above the threshold required to be just as successful.
|
||||
|
||||
### Section 4.
|
||||
|
||||
Not all questions that test for intelligence have a single correct answer. A different sort of question might ask for a list of different uses for a brick, or a blanket. A question like this measures imagination and creativity. At a top British high school, one student lists more than ten uses, many of which are comical. Another student, a prodigy with one of the school’s highest IQs, lists just a few uses, all of which are practical. Compared to an IQ test, asking about different uses for a brick might be a better way to identify future Nobel Prize winners.
|
||||
|
||||
### Section 5.
|
||||
|
||||
Terman’s error was using intelligence alone to choose his Termites. While some of the Termites had successful careers, an unexpectedly high went on to careers that even Terman didn’t consider to be successful. The two students tested by Terman’s team who actually did go on to win Nobels were not selected as Termites: their IQs were too low. Terman eventually concluded that “intellect and achievement are far from perfectly correlated.”
|
||||
|
||||
Gladwell states that to understand Chris Langan’s prospects of becoming a “true outlier,” one must learn more about him.
|
||||
|
||||
## Analysis: Chapter Three: The Trouble with Geniuses, Part 1
|
||||
|
||||
Intelligence, Gladwell argues, does not equal success. He dedicates this chapter to the examination of geniuses. Comparing the young subjects of Lewis Terman to Chris Langan, Gladwell argues against Terman’s idea that genius is a key to societal advancement. Gladwell lists Langan’s early accomplishments as a shining example of Terman's idea, then swiftly undercuts expectations. Gladwell argues again that individuals do not succeed or fail solely on their own, but rather due to a constellation of factors, many of which are uncontrollable. Langan's early achievements would suggest great things and a continued path toward accomplishment, but Gladwell includes the anecdote of his game show appearance to undermine the notion that genius equals success. Using two questions from an IQ test, Gladwell introduces the idea of an IQ threshold to examine the the larger notion of intelligence and its limitations. Arguing that the measure of someone’s intelligence is only helpful up to a point, Gladwell uses examples of schools that Nobel laureates attended for undergraduate studies. Some, he points out, are elite institutions; others are not. Additionally, he points to success among graduates of the law school at the University of Michigan. There was no quantifiable difference in success post-graduation between white and POC students, some of whom were admitted under affirmative action with slightly lower undergraduate grades and standardized test scores. Reasonably, then, the level of intelligence beyond a certain point is moot. All of the students were intelligent enough to graduate, and beyond that, he argues, their intelligence predicted nothing.
|
||||
|
||||
Elements other than intelligence must contribute to success. Gladwell expands on his notion of an intelligence threshold and examines these other factors through an example of a question on a divergence test. Using examples of two students at an elite British school, Gladwell shows that the divergence test has no right answers, but instead looks for answers that demonstrate uniqueness and creativity. Intelligence matters, but so does imagination, creativity, and outside-the-box thinking. Gladwell circles back to Terman, reinforcing that the error when choosing his Termites was a focus on intelligence alone. He once again turns his attention to Chris Langan, foreshadowing that Langan’s story did not follow a direct line to achievement. Intelligence alone does not offer a certain path to success.
|
||||
|
||||
::: info Reference
|
||||
|
||||
- “Outliers Chapter 3 Summary & Analysis.” SparkNotes, www.sparknotes.com/lit/outliers/section3/. Accessed 27 Feb. 2023.
|
||||
|
||||
:::
|
||||
58
docs/save/reading/outliers/4.md
Normal file
@ -0,0 +1,58 @@
|
||||
---
|
||||
title: 'Chapter 4: The Trouble with Geniuses, Part 2'
|
||||
description: 'Chapter 4 summary of novel Outliers from Sparknotes'
|
||||
---
|
||||
|
||||
# Chapter 4: The Trouble with Geniuses, Part 2
|
||||
|
||||
## Summary: Chapter Four: The Trouble with Geniuses, Part 2
|
||||
|
||||
### Section 1.
|
||||
|
||||
Chris Langan’s mother had four children, all from different fathers. Her first husband died in Mexico, the second was murdered, the third committed suicide, and the fourth was an abusive alcoholic. Langan says he has never met someone who grew up as impoverished as he and his brothers did. Attending Reed College, in Oregon, on a scholarship, he felt as though he did not belong with the rest of the students. When his mother neglected to fill out the financial aid forms, he lost his scholarship and dropped out. According to Langan, the school just did not care about their students. Later, Langan attended Montana State University in Bozeman but he dropped out when a dean refused Langan’s request to adjust his class schedule because of car trouble. He still has intellectual interests and has been working on a treatise called the “Cognitive Theoretic Model of the Universe.” When asked if, hypothetically, he would take a position at Harvard, he acknowledges the benefit of an environment with so much intellectual energy, but he worries about a lack of intellectual freedom.
|
||||
|
||||
### Section 2.
|
||||
|
||||
Gladwell points out the oddity of Langan’s experiences. Most colleges, especially small ones, try to accommodate student needs. Smart people take positions at places like Harvard instead of in the private sector precisely for the added intellectual freedom. Gladwell contrasts Langan’s story with Robert Oppenheimer’s. While at Cambridge, Oppenheimer became frustrated with his tutor and tried to poison him. After negotiations with the school administration, Oppenheimer was put on probation and assigned to a psychiatrist. Whereas Langan dropped out after his mother failed to fill out paperwork, Oppenheimer managed to stay in college after trying to kill someone. Later, Oppenheimer convinced General Leslie Groves to make Oppenheimer the scientific director of the Manhattan Project. Oppenheimer had the ability to persuade people, where Langan did not.
|
||||
|
||||
### Section 3.
|
||||
|
||||
Psychologist Robert Sternberg calls the ability to persuade someone “practical intelligence.” It involves knowing what to say, how to say it, and when. It requires an ability to read situations. Individuals can have either practical or analytical intelligence, or in the case of Oppenheimer, both. To understand where one obtains practical intelligence, Gladwell refers to a study conducted by Annette Lareau.
|
||||
|
||||
Lareau observed parenting strategies in both Black and white families from different socioeconomic strata. She found two distinct strategies: “concerted cultivation” and “accomplishment of natural growth.” Concerted cultivation, most common in middle-class and wealthier families, is defined by parents’ active promotion of their children’s talents and interests. Accomplishment of natural growth, most common in working-class or impoverished families, is defined by parents’ lack of interest or interaction in their children’s free time. Concerted cultivation, writes Gladwell, encourages children to seek opportunities for growth and to advocate for themselves. Accomplishment of natural growth leaves children unprepared to shape their environment for their own benefit. Concerted cultivation fosters an attitude better suited for success in the modern world.
|
||||
|
||||
### Section 4.
|
||||
|
||||
Oppenheimer was raised by affluent parents who sent him to a progressive private school and took an active interest in his hobbies.
|
||||
|
||||
- **Affluent**: Having an abundant supply of money or possessions of value.
|
||||
|
||||
By contrast, Chris Langan’s brother Mark states that as children, they learned to resent authority. Mark, too, was unable to obtain financial aid, because he had no knowledge of how the system worked. If Chris Langan had been raised in a family that valued education, he probably would have had more success.
|
||||
|
||||
### Section 5.
|
||||
|
||||
Once the Termites reached working adulthood, Terman grouped 730 of the males into three categories, based on their levels of success. The top 20 percent were upper-class professionals, while the bottom 20 percent had low-paying jobs or were unemployed. After analyzing the differences between the groups, Terman found that the bottom 20 percent came almost entirely from the lowest social and economic classes. What they lacked was “a community around them that prepared them properly for the world.”
|
||||
|
||||
### Section 6.
|
||||
|
||||
Chris Langan lives on a horse farm in Missouri, where he still writes. He is happily married and continues to read physics and philosophy. While he has spent decades on his writing, almost none of it has ever been published. Langan admits he has not tried to contact publishers or found an agent—and does not plan to. Chris Langan did not have the support necessary to meet success. Gladwell points that no one ever makes it alone, regardless of if they are successful musicians, athletes, tech billionaires, or geniuses.
|
||||
|
||||
## Analysis: Chapter Four: The Trouble with Geniuses, Part 2
|
||||
|
||||
**Family background plays a crucial role in an individual’s success.** While a genius like Chris Langan should thrive on a college campus, he drops out. **Langan doesn’t struggle with academics, but with paperwork, procedures, and environment**. Gladwell’s characterization of Langan almost makes him seem like two separate characters: a confident, genius game show contestant versus a child from a poor and troubled family. Langan may be a true outlier in the sense that he doesn’t seem to fit in academia or the working-class world. Langan’s story is ironic. His brilliant mind should propel him to success. However, **his story also perfectly proves Gladwell’s point that brainpower alone does not lead to success.** The author delves deeper into the **irony** of Langan’s situation by comparing him to Robert Oppenheimer, who worked on the nuclear bomb during World War II. Like Langan, Oppenheimer possesses great intelligence. **Unlike Langan, Oppenheimer has an understanding that allows him to navigate the world effectively. Oppenheimer knows how to combat challenges, where Langan gets bested by a financial aid problem and class schedule.** **Oppenheimer’s family background gave him the confidence to deal with authority while Langan’s upbringing created a distrust of authority.** Without a family background that encourages success, intelligence is not enough.
|
||||
|
||||
::: danger Contrast & Comparison
|
||||
|
||||
Oppenheimer’s family background gave him the confidence to deal with authority while Langan’s upbringing created a distrust of authority.
|
||||
|
||||
:::
|
||||
|
||||
The power of persuasion is an important factor that drives success. Gladwell notes that the power of persuasion is practical intelligence. He contrasts practical intelligence with analytical ability, noting that just because a person is smart does not mean they have practical intelligence. These two types of knowledge are not necessarily coeval. He reinforces this point with a return to the comparison of Langan and Oppenheimer. Both men are exceedingly intelligent, but Langan lacks the social savvy of practical intelligence. Gladwell suggests that individuals gain practical intelligence skills from their families, discussing a study by sociologist Annette Lareau to prove his point. Children from wealthier families learn how to interact with society in a way that drives achievement. Successful people have the power of persuasion and can convince others to see things from their point of view.
|
||||
|
||||
Success, then, depends on more than individual effort. Gladwell builds this argument by detailing the differences between Oppenheimer’s upbringing and Langan’s. Oppenheimer lived in an upper-class neighborhood with myriad advantages. He learned how to negotiate and stand up for himself. Langan’s family moved from place to place, struggling for jobs, money, food, and clothes, and Langan learned that he couldn’t rely on others. Gladwell's consideration of the Termites' success or struggles as adults supports his assertion that success is more than an individual effort; Gladwell states, “In the end, only one thing mattered: family background.” Terman’s findings and Gladwell’s conclusion do not mean that talented individuals from lower social and economic classes cannot have successful futures. To succeed, everyone needs help along the way, if not from family, then from a supportive community. Individuals do not achieve success solely on their own.
|
||||
|
||||
::: info Reference
|
||||
|
||||
- “Outliers Chapter 4 Summary & Analysis.” SparkNotes, www.sparknotes.com/lit/outliers/section4/.
|
||||
|
||||
:::
|
||||
12
docs/vite.config.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import Components from 'unplugin-vue-components/vite'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
Components({
|
||||
dirs: ['.vitepress/theme/components'],
|
||||
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
|
||||
}),
|
||||
],
|
||||
ssr: { noExternal: ['@arco-design/web-vue'] },
|
||||
})
|
||||
7
env.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
/// <reference types="vitepress/client" />
|
||||
|
||||
declare module '*.vue' {
|
||||
import { DefineComponent } from 'vue'
|
||||
const component: DefineComponent<{}, {}, any>
|
||||
export default component
|
||||
}
|
||||
38
package.json
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "toshiki-notebook",
|
||||
"version": "0.0.1",
|
||||
"description": "Toshiki's web notebook built upon Vitepress and deployed via Vercel!",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/andatoshiki/toshiki-note",
|
||||
"author": "And Toshiki <hello@toshiki.dev>",
|
||||
"license": "MIT",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.14.2",
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"husky": "^8.0.3",
|
||||
"medium-zoom": "^1.0.8",
|
||||
"mermaid": "^9.3.0",
|
||||
"prettier": "2.8.4",
|
||||
"sass": "^1.58.3",
|
||||
"sitemap": "^7.1.1",
|
||||
"sitemap-ts": "^1.2.2",
|
||||
"unplugin-vue-components": "^0.24.0",
|
||||
"vite": "^4.1.2",
|
||||
"vitepress": "^1.0.0-alpha.46",
|
||||
"vue": "^3.2.47"
|
||||
},
|
||||
"scripts": {
|
||||
"docs:dev": "vitepress dev docs",
|
||||
"docs:build": "vitepress build docs",
|
||||
"docs:preview": "vitepress preview docs",
|
||||
"docs:host": "vitepress dev docs --host",
|
||||
"lint": "prettier --write .",
|
||||
"rm:dist": "rm -rf /docs/.vitepress/dist",
|
||||
"rm:cache": "rm -rf /docs/.vitepress/cache"
|
||||
},
|
||||
"dependencies": {
|
||||
"@andatoshiki/markdown-it-katex": "^0.0.2",
|
||||
"markdown-it": "^13.0.1"
|
||||
}
|
||||
}
|
||||
40
prettier.config.js
Normal file
@ -0,0 +1,40 @@
|
||||
module.exports = {
|
||||
tabWidth: 4,
|
||||
printWidth: 120,
|
||||
proseWrap: 'preserve',
|
||||
semi: false,
|
||||
trailingComma: 'es5',
|
||||
singleQuote: true,
|
||||
arrowParens: 'avoid',
|
||||
overrides: [
|
||||
{
|
||||
files: '{*.md,.prettierrc,.stylelintrc,.babelrc,.html}',
|
||||
options: {
|
||||
tabWidth: 4
|
||||
}
|
||||
},
|
||||
{
|
||||
files: '{*.js?(on),*.js, *.ts, *.vue}',
|
||||
options: {
|
||||
trailingComma: 'none',
|
||||
tabWidth: 2
|
||||
}
|
||||
},
|
||||
{
|
||||
files: '{**/.vscode/*.json,**/tsconfig.json,**/tsconfig.*.json}',
|
||||
options: {
|
||||
parser: 'json5',
|
||||
quoteProps: 'preserve',
|
||||
singleQuote: false,
|
||||
trailingComma: 'all',
|
||||
tabWidth: '2'
|
||||
}
|
||||
},
|
||||
{
|
||||
files: '*.y?(a)ml,',
|
||||
options: {
|
||||
singleQuote: true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
4
renovate.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["config:base"]
|
||||
}
|
||||
33
scripts/create-chapter.sh
Executable file
@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
read -p "Enter the directory where you want to generate the files (leave blank to generate in current directory): " dir
|
||||
|
||||
if [ -z "$dir" ]; then
|
||||
dir="."
|
||||
fi
|
||||
|
||||
read -p "Enter the unit number: " unit
|
||||
read -p "Enter the starting chapter number: " start_chapter
|
||||
read -p "Enter the number of chapters to generate: " num_chapters
|
||||
read -p "Do you want to generate files in descending order? (y/n): " descending
|
||||
|
||||
if [ "$num_chapters" = "0" ]; then
|
||||
filename="$unit.md"
|
||||
touch "$dir/$filename"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ "" = "" ]
|
||||
|
||||
if [ "$start_chapter" = "0" ]; then
|
||||
filename="$unit-$chapter"
|
||||
|
||||
if
|
||||
for (( i=$start_chapter; i<=$start_chapter+$num_chapters-1; i++ ))
|
||||
do
|
||||
filename="$unit-$i.md"
|
||||
touch "$dir/$filename"
|
||||
done
|
||||
fi
|
||||
|
||||
echo "Files generated successfully in $dir."
|
||||