# cs101 hw1

```CS101-001 Homework 1
1.1
x=0:0.1:10;
y=2*exp(-0.2*x);
plot(x,y)
1.3
&gt;&gt; lookfor logarithm
betaln
gammaln
logspace
logm
log
log10
log2
reallog
utScaledLogm
sbiologf
fi_log2lookup_8_bit_byte
logsig
quatlog
&gt;&gt; lookfor log10
log10
1.4
&gt;&gt; u=1
u=
1
&gt;&gt; v=3
v=
3
(a) &gt;&gt; (4*u)/(3*v)
ans =
0.4444
(b) &gt;&gt; (2*v^2)/(u+v)^2
ans =
1.1250
(c) &gt;&gt; (v^3)/(v^3-u^3)
ans =
1.0385
(d) &gt;&gt; (4/3)*(pi)*(v^2)
ans =
- Logarithm of beta function.
- Logarithm of gamma function.
- Logarithmically spaced vector.
- Matrix logarithm.
- Natural logarithm.
- Common (base 10) logarithm.
- Base 2 logarithm and dissect floating point number.
- Real logarithm.
- Matrix logarithm with pre-scaling.
- Logarithm to a specified base.
- Base-2 logarithm
- Logarithmic sigmoid transfer function.
- Calculate the natural logarithm of a quaternion.
- Common (base 10) logarithm.
1.9
37.6991
1.8
&gt;&gt; mkdir mynewdir
1.9
&gt;&gt; mkdir mynewdir
&gt;&gt; cd mynewdir
&gt;&gt; test2
*A plot shows up to the corresponding variables in the script.
1.10
&gt;&gt; mkdir mynewdir