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
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 18: Programmable Analog Arrays"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 18.1: Switching_capacitor.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"//Ex18.1\n",
"C=1000*10^-12; //Switche capacitor value in farads\n",
"R=1000; //resistance in ohms\n",
"T=R*C; //Time period\n",
"f=1/T; //Frequency at which switch should operate\n",
"disp(f,'Frequency at which each switch should operate(in hertz)' )\n",
"disp('Duty cycle should be 50%')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Scilab",
"language": "scilab",
"name": "scilab"
},
"language_info": {
"file_extension": ".sce",
"help_links": [
{
"text": "MetaKernel Magics",
"url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
}
],
"mimetype": "text/x-octave",
"name": "scilab",
"version": "0.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|