summaryrefslogtreecommitdiff
path: root/2309/CH1/EX1.1/Ex1_1.sce
blob: 607521f92eccd32fd2b37954b238f2cc3e63aa31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Chapter 1 Example 1 
//==============================================================================
clc;
clear;

//input data

P           = 1;            // for fundamental mode
t           = 0.1*10^-2;    // thickness of piezo electric crystal
E           = 80*10^9       // young's modulus
p           = 2654          // density in kg/m^3

//Calculations

f           = (P/(2*t))*sqrt(E/p);      // frequency of the oscillator circuit

//Output
mprintf('The Frequency of the oscillator circuit = %e Hz',f);

//==============================================================================