forked from CalculusWithJulia/CalculusWithJulia.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unicode.html
142 lines (110 loc) · 5.59 KB
/
unicode.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"
rel="stylesheet">
<style>
.julia {display: block; font-family: "Source Code Pro";
color:#0033CC;
}
.hljl {font-family: "Source Code Pro";
color:#0033CC;
}
body { padding-top: 60px; }
h5:before {content:"\2746\ ";}
h6:before {content:"\2742\ ";}
pre {display: block;}
th, td {
padding: 15px;
text-align: left;
border-bottom: 1px solid #ddd;
}
tr:hover {background-color: #f5f5f5;}
.admonition-title:before {content:"\2746\ ";}
.admonition-title { color:#0033CC}
</style>
<!-- .julia:before {content: "julia> "} -->
<style></style>
<script src="https://code.jquery.com/jquery.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ["\$","\$"], ["\\(","\\)"]]
},
displayAlign: "left",
displayIndent: "5%"
});
</script>
<!-- not TeX-AMS-MML_HTMLorMML-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML" async></script>
</script>
<script>
window.PlotlyConfig = {MathJaxConfig: 'local'}
</script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script type="text/javascript">
$( document ).ready(function() {
$("h1").each(function(index) {
var title = $( this ).text()
$("#page_title").html("<strong>" + title + "</strong>");
document.title = title
});
$( "h2" ).each(function( index ) {
var nm = $( this ).text();
var id = $.trim(nm).replace(/ /g,'');
this.id = id
$("#page_dropdown").append("<li><a href='#" + id + "'>" + nm + "</a></li>");
});
$('[data-toggle="popover"]').popover();
});
</script>
</head>
<body data-spy="scroll" >
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="#" id="page_title"></a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
Jump to... <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" id="page_dropdown"></ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<header>
</header>
<div class="title">
</div>
<div class="container-fluid">
<div class="span10 offset1">
<h1>Usages of unicode symbols</h1>
<p><code>Julia</code> allows the use of <em>unicode</em> symbols to replace variable names and for function calls. Unicode operations are entered in this pattern <code>\name[tab]</code>. That is a slase, <code>\</code>, the name (e.g., <code>alpha</code>), and then a press of the <code>tab</code> key.</p>
<p>In these notes, the following may appear as variable or function names</p>
<table><tr><th><code>\Name</code></th><th>Symbol</th><th>Usage notes</th></tr><tr><td><code>\euler</code></td><td><code>ℯ</code></td><td>The variable <code>e</code></td></tr><tr><td><code>\pi</code></td><td><code>π</code></td><td></td></tr><tr><td><code>\alpha</code></td><td><code>α</code></td><td></td></tr><tr><td><code>\beta</code></td><td><code>β</code></td><td></td></tr><tr><td><code>\delta</code></td><td><code>δ</code></td><td></td></tr><tr><td><code>\Delta</code></td><td><code>Δ</code></td><td>Change, as in <code>Δx</code></td></tr><tr><td><code>\gamma</code></td><td><code>γ</code></td><td></td></tr><tr><td><code>\phi</code></td><td><code>ϕ</code></td><td></td></tr><tr><td><code>\Phi</code></td><td><code>Φ</code></td><td>Used for parameterized surfaces</td></tr><tr><td><code>x\_1</code></td><td><code>x₁</code></td><td>Subscripts</td></tr><tr><td><code>r\vec</code></td><td><code>r⃗</code></td><td>Vector annotation</td></tr><tr><td><code>T\hat</code></td><td><code>T̂</code></td><td>Unit vector annotation</td></tr></table>
<p>The following are associated with derivatives</p>
<table><tr><th><code>\Name</code></th><th>Symbol</th><th>Usage notes</th></tr><tr><td><code>\partial</code></td><td><code>∂</code></td><td></td></tr><tr><td><code>\nabla</code></td><td><code>∇</code></td><td>del operator in CwJ package</td></tr></table>
<p>The following are <em>infix</em> operators</p>
<table><tr><th><code>\Name</code></th><th>Symbol</th><th>Usage notes</th></tr><tr><td><code>\circ</code></td><td><code>∘</code></td><td>composition</td></tr><tr><td><code>\cdot</code></td><td><code>⋅</code></td><td>dot product</td></tr><tr><td><code>\times</code></td><td><code>×</code></td><td>cross product</td></tr></table>
<p>Infix operators may need parentheses due to precedence rules. For example, to call a composition, one needs <code>(f ∘ g)(x)</code> so that composition happens before function evaluation (<code>g(x)</code>).</p>
</div>
</div>
</body>
</html>