<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5561841</id><updated>2011-04-21T14:00:51.136-07:00</updated><title type='text'>SULI Log 2003</title><subtitle type='html'>A daily log of ideas and things that I've done/hope to do during my SULI internship at SLAC, 2003. </subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://fliptomato.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>62</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5561841.post-105961133824604318</id><published>2003-07-30T17:28:00.000-07:00</published><updated>2003-07-30T17:28:58.283-07:00</updated><title type='text'></title><content type='html'>&lt;a href="http://yreka.stanford.edu/~cover/"&gt;Professor Thomas M. Cover&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I e-mailed this guy after receiving an e-mail from Chun-Xi Wang regarding Principal Component Analysis.&lt;br /&gt;&lt;br /&gt;Some Ideas To Think About&lt;br /&gt;The FFT of the BPM matrix is the key. We can quickly isolate the betatron frequency, so why do we use SVD? Because we don’t care about the frequency—it is only a tool. What yields the orbits is the amplitude. I am exploring SVD because the current MIA model does not SVD enhance data. I would like to explore how much error this causes relative to the “actual” case and the SVD-enhanced case. &lt;br /&gt;&lt;br /&gt;We are also now thinking about phase. We have a “toy” (as Dr. Yan called it) to model noisy BPMs. We can explore the betatron phase by tan^-1(sinlike/coslike), or tan^-1(B/A). Note, this is different from the BPM phase that I inserted into my ideal BPM data matrix.&lt;br /&gt;&lt;br /&gt;Things to play with in my “toy”: Right now the period is perfect for periodic motion. What if I change the period? What is the significance of the BPM phase and the angular frequency? I might as well change my variable names to better see this in my equations. &lt;br /&gt;&lt;br /&gt;What about the eigenvectors in V? What do those mean? What do they mean when they are chopped off?&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105961133824604318?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105961133824604318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105961133824604318'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105961133824604318' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105958872078716165</id><published>2003-07-30T11:12:00.000-07:00</published><updated>2003-07-30T11:12:00.850-07:00</updated><title type='text'></title><content type='html'>INTERESTING! See "explorations using SVD" file that i made!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105958872078716165?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105958872078716165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105958872078716165'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105958872078716165' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105951369241483320</id><published>2003-07-29T14:21:00.000-07:00</published><updated>2003-07-29T14:21:32.430-07:00</updated><title type='text'></title><content type='html'>Questions:&lt;br /&gt;1. Am I doing the right thing by "chopping" the last mode? Or should I just set it equal to zero?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105951369241483320?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105951369241483320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105951369241483320'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105951369241483320' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105943299158794390</id><published>2003-07-28T15:56:00.000-07:00</published><updated>2003-07-28T15:56:31.630-07:00</updated><title type='text'></title><content type='html'>Preliminary results (using findBetaAuto):&lt;br /&gt;Bxx=2.3153&lt;br /&gt;Bxy=2.3162&lt;br /&gt;Byx=2.7687&lt;br /&gt;Byy=2.3180&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105943299158794390?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105943299158794390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105943299158794390'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105943299158794390' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105942983999362622</id><published>2003-07-28T15:03:00.001-07:00</published><updated>2003-07-28T15:04:00.020-07:00</updated><title type='text'></title><content type='html'>function [trim]=findTrim(fxx, xbuferXs)&lt;br /&gt;% function [trim]=findTrim(cfxx)&lt;br /&gt;% July 28, 2003 by Philip Tanedo&lt;br /&gt;% originally from findBetaAuto&lt;br /&gt;% made into a separate function&lt;br /&gt;% ...for use with findBetaAutoSC&lt;br /&gt;&lt;br /&gt;tempPeak=0;&lt;br /&gt;tempIndex=0;&lt;br /&gt;i=0;&lt;br /&gt;[tempIndex, tempPeak]=findPeak(fxx);&lt;br /&gt;peakVec(i+1)=abs(tempPeak);&lt;br /&gt;for(i=1:15)&lt;br /&gt;    temp=xbuferXs;&lt;br /&gt;    for(j=1:i)&lt;br /&gt;        temp=BotRowChop(temp); % fine-tuning the frequency&lt;br /&gt;    end    &lt;br /&gt;    fxx=fft(temp);&lt;br /&gt;    fxx=TopRowChop(fxx); % chop closed orbit&lt;br /&gt;    [tempIndex, tempPeak]=findPeak(fxx);&lt;br /&gt;    peakVec(i+1)=abs(tempPeak);&lt;br /&gt;end&lt;br /&gt;[tempIndex, tempPeak]=findPeak(peakVec);&lt;br /&gt;trim=tempIndex-1; % because of note above: to accoun for zeroth trim, index is i+1&lt;br /&gt;disp(['TRIM = ', num2str(trim) ]);&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105942983999362622?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105942983999362622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105942983999362622'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105942983999362622' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105942983348679368</id><published>2003-07-28T15:03:00.000-07:00</published><updated>2003-07-28T15:03:53.520-07:00</updated><title type='text'></title><content type='html'>function [beta]=findBetaAuto(xbuferXs, label)&lt;br /&gt;% function [beta]=findBetaAuto(xbuferXs, label)&lt;br /&gt;% July 28, 2003 by Philip Tanedo&lt;br /&gt;% MODIFIED version of findBeta&lt;br /&gt;% Automates as many processes as possible&lt;br /&gt;% Returns betatron oscillation for fxx&lt;br /&gt;% Preconditions: &lt;br /&gt;% ...flipBuf.mat has been loaded, 'tools' added to path&lt;br /&gt;% Procedure:&lt;br /&gt;% 0. fxx=fft(XbuferXs)&lt;br /&gt;% 1. kill closed orbit&lt;br /&gt;% 2. plot all for user&lt;br /&gt;% 3. prompt user for reasonable data&lt;br /&gt;% 4. close all&lt;br /&gt;% 5. plot representation of frequency increments&lt;br /&gt;% 6. prompt user for reasonable size&lt;br /&gt;% 7. adjust size&lt;br /&gt;% 8. isolate peak frequency&lt;br /&gt;% 9. return peak frequency as betatron frequency&lt;br /&gt;% NOTE: can also be used w/ noisy data to extract&lt;br /&gt;% ...noise frequency when noise is bigger than betatron&lt;br /&gt;&lt;br /&gt;% 0&lt;br /&gt;fxx = fft(xbuferXs);&lt;br /&gt;&lt;br /&gt;% 1&lt;br /&gt;fxx=TopRowChop(fxx);&lt;br /&gt;&lt;br /&gt;% 2&lt;br /&gt;% graphAllFC(fxx, label);&lt;br /&gt;&lt;br /&gt;% 3&lt;br /&gt;disp('Please select a reasonable plot to use as key');&lt;br /&gt;choice=input('Index: ');&lt;br /&gt;&lt;br /&gt;% 4&lt;br /&gt;close all;&lt;br /&gt;&lt;br /&gt;% STEPS 5 and 6 from original findBeta function are commented out&lt;br /&gt;% see below for modification (automate)&lt;br /&gt;&lt;br /&gt;% % 5&lt;br /&gt;% i=0;&lt;br /&gt;% figure;&lt;br /&gt;% plot(abs(fxx(:,choice)));&lt;br /&gt;% legend(num2str(choice), 0);&lt;br /&gt;% xlabel('Frequency')&lt;br /&gt;% ylabel('Magnitude (complex)')&lt;br /&gt;% title(['BPM frequency content for BPM#s: ' num2str(choice) ' TRIM VALUE: ' num2str(i)])&lt;br /&gt;% &lt;br /&gt;% for(i=1:15)&lt;br /&gt;%     &lt;br /&gt;%     temp=xbuferXs;&lt;br /&gt;%     for(j=1:i)&lt;br /&gt;%         temp=BotRowChop(temp); % fine-tuning the frequency&lt;br /&gt;%     end&lt;br /&gt;%     &lt;br /&gt;%     fxx=fft(temp);&lt;br /&gt;%     fxx=TopRowChop(fxx); % chop closed orbit&lt;br /&gt;%     &lt;br /&gt;%     figure&lt;br /&gt;%     &lt;br /&gt;%     plot(abs(fxx(:,choice)));&lt;br /&gt;%     legend(num2str(choice), 0);&lt;br /&gt;%     xlabel('Frequency')&lt;br /&gt;%     ylabel('Magnitude (complex)')&lt;br /&gt;%     title(['BPM frequency content for BPM#s: ' num2str(choice) ' TRIM VALUE: ' num2str(i)])&lt;br /&gt;% end&lt;br /&gt;% &lt;br /&gt;% % 6 -- note: I could automate this step, as well&lt;br /&gt;% disp('Please select a reasonable plot to use as key');&lt;br /&gt;% trim=input('Trim Value: ');&lt;br /&gt;&lt;br /&gt;% 5 and 6 automated&lt;br /&gt;&lt;br /&gt;trim=findTrim(fxx, xbuferXs);&lt;br /&gt;&lt;br /&gt;% 7&lt;br /&gt;close all;&lt;br /&gt;&lt;br /&gt;temp=xbuferXs;&lt;br /&gt;for(j=1:trim)&lt;br /&gt;    temp=BotRowChop(temp); % fine-tuning the frequency&lt;br /&gt;end&lt;br /&gt;fxx=real(fft(temp));&lt;br /&gt;fxx=TopRowChop(fxx); % chop closed orbit&lt;br /&gt;&lt;br /&gt;% 8&lt;br /&gt;% [pindex, pvalue]=findPeak(fxx);&lt;br /&gt;&lt;br /&gt;% but now what does this mean at all?&lt;br /&gt;% finding the right frequency should be trivial&lt;br /&gt;&lt;br /&gt;% DESIGN NOTE&lt;br /&gt;% I will design this function to find the complex frequency&lt;br /&gt;% I think this should be good enough to find the sin/cos freq&lt;br /&gt;% Otherwise, I can always modify new functions&lt;br /&gt;&lt;br /&gt;% Below code is cited from&lt;br /&gt;% "Spectral Analysis using the FFT" by Bret Ninness&lt;br /&gt;% http://www.ee.newcastle.edu.au/brett/elec2400/matlab4.pdf&lt;br /&gt;% Page 2&lt;br /&gt;&lt;br /&gt;% Start citation&lt;br /&gt;temp=size(fxx);&lt;br /&gt;ws=2*pi/temp(1);&lt;br /&gt;wnorm=-pi:ws:pi;&lt;br /&gt;wnorm=wnorm(1:temp(1)); &lt;br /&gt;% flip's comment: this is a nifty idea!&lt;br /&gt;% I should have incorporated something like that last line in my &lt;br /&gt;% ... "chop" functions&lt;br /&gt;% End&lt;br /&gt;&lt;br /&gt;%fsxx: fft shift of fxx&lt;br /&gt;fsxx=fftshift(fxx);&lt;br /&gt;[spindex, spvalue]=findPeak(fsxx);&lt;br /&gt;beta=abs(wnorm(spindex));&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105942983348679368?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105942983348679368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105942983348679368'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105942983348679368' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105941830805348883</id><published>2003-07-28T11:51:00.000-07:00</published><updated>2003-07-28T11:51:48.106-07:00</updated><title type='text'></title><content type='html'>Things to remember: for the discrete fourier transform, there is a max resolution!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105941830805348883?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105941830805348883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105941830805348883'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105941830805348883' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105941447938631157</id><published>2003-07-28T10:47:00.000-07:00</published><updated>2003-07-28T10:47:59.456-07:00</updated><title type='text'></title><content type='html'>Writing FFT script. A little bit tedious. How do I convert from FFT frequency to "real" frequency?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105941447938631157?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105941447938631157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105941447938631157'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105941447938631157' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105918030919690028</id><published>2003-07-25T17:45:00.000-07:00</published><updated>2003-07-25T17:45:09.190-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In May of 2003, physicists and engineers at the Stanford Linear Accelerator Center were able to achieve record-breaking, peak luminosity in the PEP-II positron/electron storage rings. (Woods) This unprecedented improvement was due in part to a statistical technique called Model Independent Analysis (MIA), which evaluates data without a priori information about the underlying physical apparatus. In order to understand the mechanism by which MIA is able to analyze PEP-II beam data, however, it is useful to first be able to model a simplified particle accelerator in terms of linear optics. &lt;br /&gt;&lt;br /&gt;In such a representation, we consider the trace of a particle’s transverse position (x and y coordinates as the particle travels in the z-direction) in 4-dimensional phase space (x and y position along with respective momenta). By representing each lattice element, such as a focusing-defocusing quadrupole magnet, by a matrix transformation acting on a phase space vector, we can extract turn-by-turn maps for the particle’s phase-space position. One can decompose these turn-by-turn maps, or local transfer matrices, into simple rotations in normalized, decoupled phase space, which makes the beam dynamics much simpler mathematically.&lt;br /&gt;&lt;br /&gt;Unfortunately, in the real machine we are unable to directly quantify particles’ momenta, and are limited to the data acquired from beam position monitors (BPMs) to determine the center of the electron beam. With what appears to be a mathematical sleight of hand, however, one may still extract the local transfer matrix from this information. BPM data along a given axis (x or y) may be represented as an n x m matrix where n is the number of consecutive-turn measurements and m is the number of BPMs. By exciting the beam’s two eigenplanes and extracting sine-like and cosine-like orbits for each excitation, one collects four linearly-independent orbits which completely determine the linear optics of the system. For example, the data from the excitation of the beam’s first eigenplane results in two data matrices, one representing the x position of the beam at each x-sensitive BPM and the other representing the corresponding y position at each y-sensitive BPM. (In PEP-II not every BPM records both x and y data.) As eigenplane one lies closer to the x-axis of the BPMs, it is a much clearer source of information about the sine-like and cosine-like frequency of betatron oscillations.&lt;br /&gt;&lt;br /&gt;BPM noise is removed from the data through the use of FFT and SVD, which also provide a way to identify noisy BPMs and even extract dispersion from synchrotron modes. To fit data, one assumes the longitudinal position of the beam’s magnets are fixed and known. BPM errors and the precise strength of each magnet are then treated as variables and a numerical  algorithm is iterated to fit the clean BPM data with those variables. The machine’s ideal lattice is used as an initial guess for the algorithm. To fit data, one assumes the longitudinal position of the beam’s magnets are fixed and known. BPM errors and the precise strength of each magnet are then treated as variables and a numerical  algorithm is iterated to fit the clean BPM data with those variables. The machine’s ideal lattice is used as an initial guess for the algorithm. To fit data, one assumes the longitudinal position of the beam’s magnets are fixed and known. BPM errors and the precise strength of each magnet are then treated as variables and a numerical  algorithm is iterated to fit the clean BPM data with those variables. The machine’s ideal lattice is used as an initial guess for the algorithm. To fit data, one assumes the longitudinal position of the beam’s magnets are fixed and known. BPM errors and the precise strength of each magnet are then treated as variables and a numerical  algorithm is iterated to fit the clean BPM data with those variables. The machine’s ideal lattice is used as an initial guess for the algorithm. &lt;br /&gt;&lt;br /&gt;The data on BPM gains and tilt from several sets of data can be analyzed for statistical patterns. Such an analysis was done on the BPM error data for April 29th, 2003 (pre-processed by MIA), and the results show that some BPMs have consistent systemic errors. These errors, along with data about noisy and bad BPMs from the FFT and SVD procedures, are being presented to the PEP-II BPM Working Group with a reccomendation for recalibration. &lt;br /&gt;&lt;br /&gt;While the scope of this project is limited to pedagogical exploration of linear optics due to time constraints, I strongly hope to continue this  project with the purpose of using MIA to find an analytical method to determine the Courant parameter and betatron oscillations in the eigenplanes of a coupled system.&lt;br /&gt;&lt;br /&gt; References&lt;br /&gt;&lt;br /&gt;Woods, H. R. (2003).&lt;br /&gt;PEP-II Attains Record Beam Luminosity. Interaction Point. &lt;br /&gt;May 16, 2003. &lt;br /&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105918030919690028?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105918030919690028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105918030919690028'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105918030919690028' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105908428416058741</id><published>2003-07-24T15:04:00.000-07:00</published><updated>2003-07-24T15:04:44.176-07:00</updated><title type='text'></title><content type='html'>I isolated my ringing-in-the-middle BPMS along with my noisy BPM. And I'm having a lot more fun plotting stuff on matlab! Things are fun again. &lt;br /&gt;&lt;br /&gt;I would still like to study the frequency shizzle, however. I wonder if I can find someone who can help me with that. (How to interpret frequency content)&lt;br /&gt;&lt;br /&gt;Maybe i'll look at that old printout I had.&lt;br /&gt;Speaking of which--reminder: get old printouts and materials. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105908428416058741?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105908428416058741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105908428416058741'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105908428416058741' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105908152654822736</id><published>2003-07-24T14:18:00.000-07:00</published><updated>2003-07-24T14:18:46.563-07:00</updated><title type='text'></title><content type='html'>Went back and finished an old project: custom 4x4 ideal lattice creation. It might come in handy some time in the future. I could always customize a design to form an "idealized" linear PEP-II with no energy consideration. Of course... then it would be the same as any other machine of similar idealization. &lt;br /&gt;&lt;br /&gt;Back to those fourier transforms.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105908152654822736?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105908152654822736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105908152654822736'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105908152654822736' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105907245052010807</id><published>2003-07-24T11:47:00.000-07:00</published><updated>2003-07-24T11:47:30.600-07:00</updated><title type='text'></title><content type='html'>I'm frustrated by oscillating between believing that I have nothing to write about, and having everything in the world to write about. I'm either writing an article for the Stanford Daily or an encyclopedia. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105907245052010807?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105907245052010807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105907245052010807'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105907245052010807' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105907000748417677</id><published>2003-07-24T11:06:00.000-07:00</published><updated>2003-07-24T11:06:47.570-07:00</updated><title type='text'></title><content type='html'>Here's something cool that I forgot to mention from yesterday:&lt;br /&gt;&lt;br /&gt;PEPII uses RF frequency microwaves to regulate the beam and keep it "bunched up." It is conventional to think of the waveguides as slowing down the electrons ahead of the bunch and speeding up those behind it.&lt;br /&gt;&lt;br /&gt;While this is the net effect, what actually happens is that the electrons ahead of the bunch are sped up, causing relativistic effects and making the particle more massive. Massive particles have more intertia and do not turn as tightly, and thus are relegated to a slightly larger (radius) orbit. The size of this larger orbit overcompensates for the higher speed, and the particle falls behind to join the rest of the bunch.&lt;br /&gt;&lt;br /&gt;Pretty neat, huh?&lt;br /&gt;&lt;br /&gt;My questions about what i'm doing.&lt;br /&gt;&lt;br /&gt;MIA DATA &lt;br /&gt;(1) BPM gains and tilt. Easy to compute, simple statistics.&lt;br /&gt;(2) BPM data&lt;br /&gt;  (a) Identify bad, dead BPMS&lt;br /&gt;  (b) Extract clean signal&lt;br /&gt;  (c) Find eigenplane&lt;br /&gt;&lt;br /&gt;Questions:&lt;br /&gt;How does this all lead to higher luminosity?&lt;br /&gt;What is my overreaching goal?&lt;br /&gt;So even if i can make a linear optics representation--which is only an academic contribution--what is really done to modify the machine?&lt;br /&gt;What is nonlinear optics?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105907000748417677?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105907000748417677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105907000748417677'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105907000748417677' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105900365538358818</id><published>2003-07-23T16:40:00.000-07:00</published><updated>2003-07-23T16:50:51.563-07:00</updated><title type='text'></title><content type='html'>Assignments:&lt;br /&gt;* Use SVD (After eliminating closed orbit) and compare results to FFT&lt;br /&gt;&lt;br /&gt;NOTE: don't worry too much about getting rid of the funky spikes on the end, just use the spikes that are correct&lt;br /&gt;&lt;br /&gt;* try using FFT and SVD together&lt;br /&gt;&lt;br /&gt;Some values:&lt;br /&gt;range of betatron oscillations: .5-.7&lt;br /&gt;range of synchrotron oscillation: .03&lt;br /&gt;&lt;br /&gt;Food for thought: figure out what the freakin' units are on an FFT'd function. They should be something like __*2pi = angular frequency.&lt;br /&gt;&lt;br /&gt;Long term project:&lt;br /&gt;Can I extract eigenplane 1 and 2 data from bpm data? (This is publishable work)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105900365538358818?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105900365538358818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105900365538358818'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105900365538358818' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105899756192890840</id><published>2003-07-23T14:59:00.000-07:00</published><updated>2003-07-23T15:09:18.096-07:00</updated><title type='text'></title><content type='html'>What do I do with the two dead BPMs that I found?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105899756192890840?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105899756192890840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105899756192890840'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105899756192890840' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105899706250191468</id><published>2003-07-23T14:51:00.000-07:00</published><updated>2003-07-23T15:00:58.676-07:00</updated><title type='text'></title><content type='html'>I can do it--I can do it--I can do it--I can do it--I can do it--I can do it!!&lt;br /&gt;&lt;br /&gt;I have to filter by coinciding peaks first!!&lt;br /&gt;Then I can make a vector of coinciding peak and then use the SAME "chop of at a certain discrimination fraction" technique that I've been doing all this time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105899706250191468?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105899706250191468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105899706250191468'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105899706250191468' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105898058442821239</id><published>2003-07-23T10:16:00.000-07:00</published><updated>2003-07-23T10:26:20.606-07:00</updated><title type='text'></title><content type='html'>Yesterday: Talk by Andrei Linde. He's an *excellent* speaker and absolutely hilarious. &lt;br /&gt;&lt;br /&gt;Today, goals:&lt;br /&gt;1. program to take noise out of bpm data&lt;br /&gt;2. program to convert clean frequency content into clean signal&lt;br /&gt;3. analyze clean signal&lt;br /&gt;4. SVD enhance&lt;br /&gt;5. analyze enhanced signal&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105898058442821239?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105898058442821239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105898058442821239'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105898058442821239' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105891360241931530</id><published>2003-07-22T15:40:00.000-07:00</published><updated>2003-07-22T15:40:02.343-07:00</updated><title type='text'></title><content type='html'>Rahul just taught be a little about convolution (and he recommended another book for me to learn FFT from). Very cool stuff!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105891360241931530?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105891360241931530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105891360241931530'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105891360241931530' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105890846146158630</id><published>2003-07-22T14:14:00.000-07:00</published><updated>2003-07-22T14:14:21.510-07:00</updated><title type='text'></title><content type='html'>Observations from playing with april 29 bpm data:&lt;br /&gt;Funny xbuferX results for BPM 1 (xcomTags(1)) and 318 (xcomTags(196)).&lt;br /&gt;&lt;br /&gt;Why are they at such a different range?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105890846146158630?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105890846146158630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105890846146158630'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105890846146158630' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105889888955709932</id><published>2003-07-22T11:34:00.000-07:00</published><updated>2003-07-22T11:34:49.523-07:00</updated><title type='text'></title><content type='html'>Finished the main part of my BPM error program. I think I'll go back to playing with FFT and the BPM data. I wonder what else there is for me out there?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105889888955709932?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105889888955709932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105889888955709932'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105889888955709932' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105882741386196954</id><published>2003-07-21T15:43:00.000-07:00</published><updated>2003-07-21T15:43:33.740-07:00</updated><title type='text'></title><content type='html'>Just got the April 29 Data&lt;br /&gt;My goals:&lt;br /&gt;&lt;br /&gt;1. FFT, isolate closed orbit (see notes on board about what a closed orbit is--it has to do with static BPM shifts w/rt the beam)&lt;br /&gt;&lt;br /&gt;2. SVD, try plotting U and V'&lt;br /&gt;&lt;br /&gt;3. See what I can do with the orbits. Can I make an analysis of the BPMs independent of the model?&lt;br /&gt;&lt;br /&gt;4. play with FFT. &lt;br /&gt;&lt;br /&gt;Here's something to think about: M12 = A2*R12*A1^-1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105882741386196954?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105882741386196954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105882741386196954'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105882741386196954' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105882087236731147</id><published>2003-07-21T13:54:00.000-07:00</published><updated>2003-07-21T13:54:32.283-07:00</updated><title type='text'></title><content type='html'>Need to develop a test program for my runAnalysis program... dataArray matrix variabl especially. I'm thinking either a full out '==' comparison or using random integers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105882087236731147?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105882087236731147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105882087236731147'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105882087236731147' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105881816852351887</id><published>2003-07-21T13:09:00.000-07:00</published><updated>2003-07-21T13:09:28.603-07:00</updated><title type='text'></title><content type='html'>personal:&lt;br /&gt;&lt;br /&gt;Talked to Dr. Yan briefly about long-term opportunities working under him. I'm curious where this might all lead up to. I should also remember to talk to Scott Thomas and maybe Pat Burchat/John Fox/and company. Yue recommended talking to Dr. Peskin, her graduate advisor. &lt;br /&gt;&lt;br /&gt;I should go ask Erin Smith about accessing previous students' work. &lt;br /&gt;&lt;br /&gt;Flip loves physics.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105881816852351887?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105881816852351887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105881816852351887'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105881816852351887' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105881545488580739</id><published>2003-07-21T12:24:00.000-07:00</published><updated>2003-07-21T12:24:14.906-07:00</updated><title type='text'></title><content type='html'>More books from the library:&lt;br /&gt;&lt;br /&gt;Introduction to Lie Algebras and Representation Theory, Humphreys&lt;br /&gt;Application sof Lie Groups to Differential Equations, Oliver&lt;br /&gt;Introduction to Statistical Analysis, Dixon&lt;br /&gt;The Art of Electronics, Horowitz and Hill&lt;br /&gt;&lt;br /&gt;Borrowed from John Fox:&lt;br /&gt;Student Manual for the ARt of Electronics&lt;br /&gt;Electronic Circuites, Tietze&lt;br /&gt;Principles of Electronic Instrumentation, Diefenderfer&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105881545488580739?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105881545488580739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105881545488580739'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105881545488580739' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105880514958973005</id><published>2003-07-21T09:32:00.000-07:00</published><updated>2003-07-21T09:32:29.573-07:00</updated><title type='text'></title><content type='html'>A few notes:&lt;br /&gt;* Working on BPM gain/coupling errors--I should develop a program to analyze it... time to dig up some stat&lt;br /&gt;* On the back burner: should finish up lattice program--results should be interesting&lt;br /&gt;--goal: input any lattice (by hand or by text), create all appropriate matrices, output graphs of betatron function, output all releveant frequencies using fft. This will be a pretty cool program!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Personal notes:&lt;br /&gt;* Should probably purchase Horowitz &amp; Hill + Student Manual&lt;br /&gt;* I think I'll also look into the "teach yourself electronis" book&lt;br /&gt;* I need to return/renew my library books (note: Rahul still has "6 not-so-easy pieces")&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105880514958973005?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105880514958973005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105880514958973005'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105880514958973005' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105855242715138369</id><published>2003-07-18T11:20:00.000-07:00</published><updated>2003-07-18T11:20:27.203-07:00</updated><title type='text'></title><content type='html'>Developed a testfft script that clarifies a lot of things. I will soon post it on my website.&lt;br /&gt;&lt;br /&gt;echo on&lt;br /&gt;% Test FFT Script&lt;br /&gt;% July 18, 2003 by Philip Tanedo&lt;br /&gt;% Purpose: demonstrate the basic use of matlab's fft function&lt;br /&gt;% Adapted from: "Spectral Analysis using the FFT" by Brett Ninness&lt;br /&gt;% ... http://www.ee.newcastle.edu.au/brett/elec2400/matlab4.pdf&lt;br /&gt;&lt;br /&gt;ts=0:.1:50;&lt;br /&gt;% Time data (independent variable)&lt;br /&gt;% The only really important piece of data here is that dt=.1&lt;br /&gt;% note: we usually start with x, not ts&lt;br /&gt;&lt;br /&gt;x=sin(ts)+cos(3*ts);&lt;br /&gt;% Construct sampling vector&lt;br /&gt;% Usually, this is our starting point (and we know what dt is)&lt;br /&gt;&lt;br /&gt;fs=10;&lt;br /&gt;% Frequency = 1/t (frequency of sampling)&lt;br /&gt;&lt;br /&gt;t=(0:1:length(x)-1)/fs;&lt;br /&gt;% Construct time vector&lt;br /&gt;% This is the same thing as ts, but we construct it now&lt;br /&gt;% because we don't usually start with ts&lt;br /&gt;&lt;br /&gt;figure&lt;br /&gt;plot(t,x)&lt;br /&gt;xlabel('time, .1 second intervals')&lt;br /&gt;ylabel('x(t)')&lt;br /&gt;title('Plot of x(t)')&lt;br /&gt;&lt;br /&gt;N=length(x);            % For convenience&lt;br /&gt;&lt;br /&gt;ws = 2*pi/N;&lt;br /&gt;wnorm=-pi:ws:pi;&lt;br /&gt;wnorm=wnorm(1:N);       % Because length(wnorm) != length(X)&lt;br /&gt;&lt;br /&gt;w=wnorm*fs;             % scaling&lt;br /&gt;&lt;br /&gt;X=fft(x);&lt;br /&gt;Xs=fftshift(X);&lt;br /&gt;&lt;br /&gt;figure&lt;br /&gt;plot(w, abs(Xs))&lt;br /&gt;xlabel('frequency, rad/s')&lt;br /&gt;ylabel('magnitude')&lt;br /&gt;title('Plot of abs(fftshift(fft(x(t))))')&lt;br /&gt;&lt;br /&gt;figure&lt;br /&gt;plot(w, real(Xs))&lt;br /&gt;xlabel('frequency, rad/s')&lt;br /&gt;ylabel('magnitude')&lt;br /&gt;title('Plot of real(fftshift(fft(x(t))))')&lt;br /&gt;&lt;br /&gt;figure&lt;br /&gt;plot(w, imag(Xs))&lt;br /&gt;xlabel('frequency, rad/s')&lt;br /&gt;ylabel('magnitude')&lt;br /&gt;title('Plot of imag(fftshift(fft(x(t))))')&lt;br /&gt;&lt;br /&gt;echo off&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105855242715138369?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105855242715138369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105855242715138369'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105855242715138369' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105854912247746705</id><published>2003-07-18T10:25:00.000-07:00</published><updated>2003-07-18T10:25:22.510-07:00</updated><title type='text'></title><content type='html'>Yesterday I talked to John Fox about Applied Physics at Stanford and he pointed me towards a Caltech freshman lab class implementing the ZAP! take-home labs. &lt;br /&gt;&lt;br /&gt;Also, Persis Drell gave the best talk that our group has had. It wasn't about physics (surprisingly)--it was about her life and what it's like to *become* a physicist. It was very entertaining and very up front.&lt;br /&gt;&lt;br /&gt;I'm continuing to work on FFT. It turns out you need to use fftshift to make these stupid plots look right. I'm still trying to figure out how to scale them properly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105854912247746705?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105854912247746705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105854912247746705'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105854912247746705' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105847325101659142</id><published>2003-07-17T13:20:00.000-07:00</published><updated>2003-07-17T13:20:51.083-07:00</updated><title type='text'></title><content type='html'>John Fox is always busy.&lt;br /&gt;&lt;br /&gt;FFT, IFFT.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105847325101659142?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105847325101659142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105847325101659142'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105847325101659142' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105838445568037032</id><published>2003-07-16T12:40:00.000-07:00</published><updated>2003-07-16T12:40:55.640-07:00</updated><title type='text'></title><content type='html'>Cleared up a lot of questions.&lt;br /&gt;&lt;br /&gt;My assignment:&lt;br /&gt;(1) Understand&lt;br /&gt;(2) FFT/SVD on data&lt;br /&gt;&lt;br /&gt;Questions&lt;br /&gt;1. What do the sine and cosine components of FFT *mean*? Maybe Weaver can help me. I just want to make sure that I have the concept down pat. What about the imaginary/real parts?&lt;br /&gt;&lt;br /&gt;2. Make sure I understand the paper I was reading.&lt;br /&gt;&lt;br /&gt;Comments&lt;br /&gt;1. Q is essentially guessed using bpm data. Q is in eigenspace and is guessed using real space data. (Everything else is in real space)&lt;br /&gt;2. The (for example) 173 bpms are used *TOGETHER* to form a cohesive picture of what's going on... also to figure out other elements of the R matrices. Consider: Rab, where only Rab12,14,32,34 are known. Ditto with Rbc. We can also construct Rac knowing Rac=RbcRab. We now have information about the other terms in Rac. Magic!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105838445568037032?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105838445568037032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105838445568037032'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105838445568037032' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105830976075426945</id><published>2003-07-15T15:56:00.000-07:00</published><updated>2003-07-15T15:56:00.633-07:00</updated><title type='text'></title><content type='html'>M'SM=S&lt;br /&gt;Zf=MZi&lt;br /&gt;&lt;br /&gt;M=Zf*inv(Zi)&lt;br /&gt;Zf'SZf=Zi'SZi=Q&lt;br /&gt;inv(Zf')*Q*inv(Zf)=inv(Zi')*Q*inv(Zi)=S&lt;br /&gt;&lt;br /&gt;inv(Zi)=inv(Q)*Zi'*S&lt;br /&gt;Which leads (naturally, though I didn't grind the numbers) to equations 1-4 in "Application of Model-Independent Analysis to PEP-II Rings", SLAC-PUB 8888.&lt;br /&gt;&lt;br /&gt;I'm still not sure what space M is in. I believe we're talking about eigenspace, but then Z would be terribly boring. Also, then M14 and M32 are zero.&lt;br /&gt;&lt;br /&gt;I'm confused by the latter part of section 3 of the paper where Dr. Yan discusses BPM gains and x-coupling multipliers. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105830976075426945?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105830976075426945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105830976075426945'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105830976075426945' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105829322331541464</id><published>2003-07-15T11:20:00.000-07:00</published><updated>2003-07-15T11:20:23.343-07:00</updated><title type='text'></title><content type='html'>Flurry of new ideas that I need to get a handle on:&lt;br /&gt;* Green's functions&lt;br /&gt;* "Local transfer map"&lt;br /&gt;* More ODE stuff&lt;br /&gt;&lt;br /&gt;* LaTeX&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105829322331541464?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105829322331541464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105829322331541464'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105829322331541464' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105822630890246416</id><published>2003-07-14T16:45:00.000-07:00</published><updated>2003-07-14T16:45:08.823-07:00</updated><title type='text'></title><content type='html'>My new project: http://accelconf.web.cern.ch/AccelConf/p01/PAPERS/RPPH134.PDF&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105822630890246416?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105822630890246416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105822630890246416'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105822630890246416' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105822257856162671</id><published>2003-07-14T15:42:00.000-07:00</published><updated>2003-07-14T15:42:58.563-07:00</updated><title type='text'></title><content type='html'>IT WORKS!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105822257856162671?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105822257856162671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105822257856162671'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105822257856162671' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105821703797171140</id><published>2003-07-14T14:10:00.000-07:00</published><updated>2003-07-14T14:10:38.050-07:00</updated><title type='text'></title><content type='html'>I found the factor of square root of 2. Congrats, Flip. Congrats.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105821703797171140?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105821703797171140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105821703797171140'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105821703797171140' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105821009206301534</id><published>2003-07-14T12:14:00.000-07:00</published><updated>2003-07-14T12:14:52.106-07:00</updated><title type='text'></title><content type='html'>Once again reluctance is the bane of my existence. &lt;br /&gt;I should be more like Max Planck. He derived a formula for blackbody radiation that worked, and THEN set out to figure out what it meant. I was too reluctant to use my /\ matrix, and it turns out it was correct.&lt;br /&gt;&lt;br /&gt;Well, it was correct in theory. I applied it incorrectly and got the wrong result.  I can pat myself on the back for having good intuition. Too bad I didn't go all the way with it.&lt;br /&gt;&lt;br /&gt;The lesson: We have M. We want R. We don't care what A is. The A matrix is not sacrosanct. If I have to rotate, twist, transform it in any arbitrary way to make it symplectic, then so be it. &lt;br /&gt;&lt;br /&gt;I should finish my program within the hour.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105821009206301534?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105821009206301534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105821009206301534'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105821009206301534' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105820597657935225</id><published>2003-07-14T11:06:00.000-07:00</published><updated>2003-07-14T11:06:16.630-07:00</updated><title type='text'></title><content type='html'>The rest of my program is written. I still need to make a symplectic Att.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105820597657935225?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105820597657935225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105820597657935225'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105820597657935225' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105820149901110630</id><published>2003-07-14T09:51:00.000-07:00</published><updated>2003-07-14T09:51:39.050-07:00</updated><title type='text'></title><content type='html'>Nope. /\ only works when s=0. A very special and unrealistic case.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105820149901110630?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105820149901110630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105820149901110630'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105820149901110630' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105820067744195755</id><published>2003-07-14T09:37:00.000-07:00</published><updated>2003-07-14T09:37:57.473-07:00</updated><title type='text'></title><content type='html'>A weekend has not solved my problem, but it has calmed me down a little bit.&lt;br /&gt;I think there may be some hidden constraint that I have overlooked.&lt;br /&gt;&lt;br /&gt;Thus far I know that M is symplectic. I know that fastDecompose (specifically the decomposeM function) works the way I want it to and that At is of the correct format. &lt;br /&gt;&lt;br /&gt;But here's the thing: why should At be symplectic with respect to a scalar gauge? I don't think it does. Even when s=0, the X and Y invariant subspaces are transformed differently by M. (From the beginning: each quad is focus/defocus) As At is a matrix of real and imaginary parts of the complex eigenvectors ((note: i still want to figure out the constraints on s)) and as the two subspaces of M are different, then it is clear that even when s=0, At wouldn't have a single gauge scalar.&lt;br /&gt;&lt;br /&gt;I will ask dr. Yan about this later. For now I will use /\= [Sc1*I 0; 0 Sc2*I] where each element is a 2x2.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105820067744195755?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105820067744195755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105820067744195755'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105820067744195755' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105796978440463364</id><published>2003-07-11T17:29:00.000-07:00</published><updated>2003-07-11T17:29:44.373-07:00</updated><title type='text'></title><content type='html'>This is definitely very frustrating. I'm heading out 10 minutes early so I can get a head start on jogging on the Dish. Maybe the cows would know something or another about symplectic matrices.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105796978440463364?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105796978440463364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105796978440463364'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105796978440463364' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105796916718804651</id><published>2003-07-11T17:19:00.000-07:00</published><updated>2003-07-11T17:19:27.200-07:00</updated><title type='text'></title><content type='html'>Just got started with my new approach ... and another hitch.&lt;br /&gt;I'm not getting a consistent scalar gauge. &lt;br /&gt;&lt;br /&gt;Troubleshooting:&lt;br /&gt;* M matrix IS symplectic. So at least everything up to there is correct. (Lattice design)&lt;br /&gt;* Decomposition function is correct (i.e. it does what I want it to do. Whether or not what I want it to do is correct or incorrect is another question)&lt;br /&gt;&lt;br /&gt;But my A-tilde matrix (At) cannot be made symplectic by a scalar gauge. Why?&lt;br /&gt;There are only two lines of code between the M matrix and At matrix.&lt;br /&gt;&lt;br /&gt;[V,E] = eig(M)  % makes V the matrix of eigenvectosr&lt;br /&gt;At = [real(V(:,1)) imag(V(:,1)) real(V(:,3)) imag(V(:,3)) % Assigns At as I wanted&lt;br /&gt;&lt;br /&gt;I perform At'*S*At and I get a diagonal block matrix of 2x2s. But the upper left block does not agree with the lower right block, and hence two different gauges exist for each subspace--which is NOT mathematically sound: there can only be one gauge.&lt;br /&gt;&lt;br /&gt;I wonder if my A-tilde is defined correctly.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105796916718804651?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105796916718804651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105796916718804651'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105796916718804651' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105796502786879911</id><published>2003-07-11T16:10:00.000-07:00</published><updated>2003-07-11T16:10:27.940-07:00</updated><title type='text'></title><content type='html'>Wait. Maybe it doesn't have to be symmetric.&lt;br /&gt;The quadrupoles aren't symmetric, so why should a particle's one-turn map (M) be symmetric with respect to the invariant eigenplanes (s=0)? I'll have to try plugging in -k for k in my lattice and then checking if the resulting M is the same thing as M....&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;OH WAIT. A visit from Dr. Yan:&lt;br /&gt;I was doing everything in the wrong order!!&lt;br /&gt;&lt;br /&gt;(1) The answer to the above question is yes. &lt;br /&gt;(2) Here's my modus operandi. &lt;br /&gt;&lt;br /&gt;(a) [R,At,M]=fastDecompose(k,L,s)   (this step is correct)&lt;br /&gt;(b) transform At -&gt; Att = Sc*At such that Att is SYMPLECTIC (AHA!!!)&lt;br /&gt;&lt;br /&gt;note: Dr. Yan TOLD me this before and I didn't understand its significance until now. My problem was that I put the scalar and rotational gauges together. No! The scalar gauge does one thing (makes Att symplectic) and the rotational gauge does something completely different (rotates into "proper form"). &lt;br /&gt;&lt;br /&gt;(c) Find Rt (My decomposeAx and decomposeAy functions were completely incorrect).&lt;br /&gt;(d) find (CA)&lt;br /&gt;(e) perform my end-analysis to find C and alphas, betas.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105796502786879911?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105796502786879911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105796502786879911'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105796502786879911' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105795855265446836</id><published>2003-07-11T14:22:00.000-07:00</published><updated>2003-07-11T14:22:44.523-07:00</updated><title type='text'></title><content type='html'>Something *is* indeed wrong. I can't believe that I didn't check this earlier, but I do *NOT* end up with a symmetric matrix when I put in skew = 0!!&lt;br /&gt;&lt;br /&gt;Where is the error?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105795855265446836?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105795855265446836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105795855265446836'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105795855265446836' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105795762541307777</id><published>2003-07-11T14:07:00.000-07:00</published><updated>2003-07-11T14:07:05.506-07:00</updated><title type='text'></title><content type='html'>I noticed that all my Rt matrices are identity. I will modify my program to allow for any arbitrary lattice design. Maybe the problem lies in the skew matrix that has no counter skew?&lt;br /&gt;&lt;br /&gt;To do:&lt;br /&gt;* backup semi-complete 4x4coupled folder&lt;br /&gt;* develop new createLattice program&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105795762541307777?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105795762541307777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105795762541307777'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105795762541307777' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105795714694363047</id><published>2003-07-11T13:59:00.000-07:00</published><updated>2003-07-11T13:59:06.836-07:00</updated><title type='text'></title><content type='html'>I already found one error in the decomposeAy function. (It was written decomposeAx)&lt;br /&gt;&lt;br /&gt;Still the same errors, though.&lt;br /&gt;The ScC matrix is totally incorrect. The two diagonal 2x2 submatrices do not have zero off-diagonals. Meanwhile, the two off-diagonal 2x2s don't have matching Ws. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105795714694363047?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105795714694363047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105795714694363047'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105795714694363047' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105795702284518337</id><published>2003-07-11T13:57:00.000-07:00</published><updated>2003-07-11T13:57:02.880-07:00</updated><title type='text'></title><content type='html'>This morning we went to go visit Applied Materials in Santa Clara.&lt;br /&gt;&lt;br /&gt;I finished scripting my program so that all I have to do is run a single command line prompt and enter a few values at the beginning. The problem is, I'm still getting incorrect scalar-times-C matrices. I'm wondering if there is *another* gauge rotation involved, but I don't think that would fit into the framework of M=At*R*At^-1&lt;br /&gt;&lt;br /&gt;I typed up all of my functions and scripts. I include them below for no apparent reason. &lt;br /&gt;&lt;br /&gt;--- (i wonder if the below will turn into a line)&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;% initialize k,L,s&lt;br /&gt;&lt;br /&gt;clear all;&lt;br /&gt;global k;&lt;br /&gt;global L;&lt;br /&gt;global s;&lt;br /&gt;initializekLs;&lt;br /&gt;&lt;br /&gt;function initializekLs&lt;br /&gt;% function initializekLs&lt;br /&gt;% preconditions: k,L,s global variables; no other variables&lt;br /&gt;% postconditions: those variables filled with ik,iL,is&lt;br /&gt;% use with initialize.m script&lt;br /&gt;&lt;br /&gt;global k;&lt;br /&gt;global L;&lt;br /&gt;global s;&lt;br /&gt;&lt;br /&gt;k=input('Input k: ');&lt;br /&gt;L=input('Input L: ');&lt;br /&gt;s=input('Input s: ');&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;% algorithm to partially solve 4x4&lt;br /&gt;%&lt;br /&gt;% INPUT: k,L,s&lt;br /&gt;% fastDecompose: gives R,At,M&lt;br /&gt;% decomposeAx: gives Alx,Bex,Thx&lt;br /&gt;% decomposeAy: gives Aly,Bey,Thy&lt;br /&gt;% createA: gives A&lt;br /&gt;% createRt: gives Rt&lt;br /&gt;% createScC: gives ScC&lt;br /&gt;% *one more function to separate Sc, Phi, and W&lt;br /&gt;% *--not yet constructed&lt;br /&gt;%&lt;br /&gt;% Preconditions: k,L,s already exist&lt;br /&gt;% Postconditions: all variables filled&lt;br /&gt;&lt;br /&gt;[R,At,M]=fastDecompose(k,L,s);&lt;br /&gt;[Alx,Bex,Thx]=decomposeAx(R,At,M);&lt;br /&gt;[Aly,Bey,Thy]=decomposeAy(R,At,M);&lt;br /&gt;[A]=createA(Alx, Bex, Aly, Bey);&lt;br /&gt;[Rt]=createRt(Thx, Thy);&lt;br /&gt;[ScC]=createScC(At,Rt,A);&lt;br /&gt;&lt;br /&gt;%TESTING: view ScC&lt;br /&gt;ScC&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function [R,At,M] = fastDecompose(k,L,s)&lt;br /&gt;% function [R,At,M] = fastDecompose(k,L,s)&lt;br /&gt;% [R,A]=decomposeM(createM(createLattice(k,L,s)));&lt;br /&gt;% THIS FUNCTION DOES NOT WORK for LARGE s&lt;br /&gt;&lt;br /&gt;[R,At]=decomposeM(createM(createLattice(k,L,s)));&lt;br /&gt;M = createM(createLattice(k,L,s));&lt;br /&gt;-------------------------------------------------------&lt;br /&gt;function [lattice]=createLattice(k,L,s)&lt;br /&gt;% function [lattice]=createLattice(k,L,s)&lt;br /&gt;% creates 4x4 coupled lattice&lt;br /&gt;% k = focusing&lt;br /&gt;% L = drift&lt;br /&gt;% s = coupling&lt;br /&gt;% coupling occurs after o1&lt;br /&gt;% map: o1 - s - o2 - o3 - o2&lt;br /&gt;% o1 = x focusing, y defocusing&lt;br /&gt;% o2 = drift&lt;br /&gt;% o3 = x defocusing, y focusing&lt;br /&gt;%  s = coupling&lt;br /&gt;% lattice = [o2, o3, o2, s, o1]&lt;br /&gt;% note convention: M = L(1)*L(2)*L(3)*L(4)*L(5)&lt;br /&gt;&lt;br /&gt;o1 = [1 0 0 0; -k 1 0 0; 0 0 1 0; 0 0 k 1];&lt;br /&gt;o2 = [1 L 0 0; 0 1 0 0; 0 0 1 L; 0 0 0 1];&lt;br /&gt;o3 = [1 0 0 0; k 1 0 0; 0 0 1 0; 0 0 -k 1];&lt;br /&gt; S = [1 0 0 0; 0 1 s 0; 0 0 1 0; s 0 0 1];&lt;br /&gt;&lt;br /&gt;lattice(:,:,1)=o2;&lt;br /&gt;lattice(:,:,2)=o3;&lt;br /&gt;lattice(:,:,3)=o2;&lt;br /&gt;lattice(:,:,4)=S;&lt;br /&gt;lattice(:,:,5)=o1;&lt;br /&gt;&lt;br /&gt;function [M]=createM(lattice)&lt;br /&gt;% function [M]=createSimpleM(lattice)&lt;br /&gt;% creates M as a composition of 4x4 matrices in the lattice&lt;br /&gt;M=lattice(:,:,1)*lattice(:,:,2)*lattice(:,:,3)*lattice(:,:,4)*lattice(:,:,5);&lt;br /&gt;&lt;br /&gt;function [R,At] = decomposeM(M)&lt;br /&gt;% function [R,At] = decomposeM(M)&lt;br /&gt;% M = AtRA^T-1&lt;br /&gt;% At = A-tilde (At = CA)&lt;br /&gt;% C = [ Icos  Wsin]     A= [ Ax  0  ]&lt;br /&gt;%     [-Wsin  Icos]        [ 0   Ay ]&lt;br /&gt;% I, W, Ax, Ay are 2x2&lt;br /&gt;% Ax defined conventionally as  [ sqB    0    ]&lt;br /&gt;%                               [ a/sqB 1/sqB ]&lt;br /&gt;[V,E]=eig(M);&lt;br /&gt;At=[real(V(:,1)) imag(V(:,1)) real(V(:,3)) imag(V(:,3))];&lt;br /&gt;R=inv(At)*M*At;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;function [Alx,Bex,Thx]=decomposeAx(R,At,M)&lt;br /&gt;% function [Alx,Bex,Thx]=decomposeAx(R,At,M)&lt;br /&gt;% decomposes Atx into Ax, where Ax is the nice decoupled form&lt;br /&gt;% by giving values for alpha-x (Alx) and beta-x (Bex)&lt;br /&gt;% also gives value for the x-rotation Thx&lt;br /&gt;%&lt;br /&gt;% Does NOT give a value for phi or Sc&lt;br /&gt;% But I know Sc = 1/det(At)*cos(phi)&lt;br /&gt;&lt;br /&gt;% some convention&lt;br /&gt;% Atx = [ m n ] = top left 2x2 of At&lt;br /&gt;%       [ o p ]&lt;br /&gt;m = At(1,1);&lt;br /&gt;n = At(1,2);&lt;br /&gt;o = At(2,1);&lt;br /&gt;p = At(2,2);&lt;br /&gt;&lt;br /&gt;Atx=[m,n;o,p];&lt;br /&gt;&lt;br /&gt;% My system of nonlinear equations&lt;br /&gt;% (0) Sc^2*det(Atx) = cosPhi&lt;br /&gt;% (1) Sc(mcosThx-nsinThx) = cosPhi*sB&lt;br /&gt;% (2) Sc(ocosThx-psinThx) = -Al/sB *cosPhi&lt;br /&gt;% (3) Sc(msinThx+nsinThx) = 0&lt;br /&gt;% (4) Sc(osinThx+pcosThx) = 1/sB *cosPhi&lt;br /&gt;&lt;br /&gt;% from (3)&lt;br /&gt;Thx=atan(-n/m);&lt;br /&gt;&lt;br /&gt;% more convention&lt;br /&gt;a1=(m*cos(Thx))-(n*sin(Thx));&lt;br /&gt;a2=(o*cos(Thx))-(p*sin(Thx));&lt;br /&gt;a3=(m*sin(Thx))+(n*cos(Thx));&lt;br /&gt;a4=(o*sin(Thx))+(p*cos(Thx));&lt;br /&gt;&lt;br /&gt;Bex=((1/det(Atx)*a1)^2);&lt;br /&gt;&lt;br /&gt;% from (1) &amp; (2)&lt;br /&gt;Alx=-(sqrt(Bex)*a2)/(det(Atx));&lt;br /&gt;&lt;br /&gt;% from (0)&lt;br /&gt;% Sc^2 =(1/det(Atx))*(cos(Phi))^2;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;function [Aly,Bey,Thy]=decomposeAy(R,At,M)&lt;br /&gt;% function [Aly,Bey,Thy]=decomposeAx(R,At,M)&lt;br /&gt;% decomposes Aty into Ay, where Ay is the nice decoupled form&lt;br /&gt;% by giving values for alpha-y (Aly) and beta-y (Bey)&lt;br /&gt;% also gives value for the y-rotation Thy&lt;br /&gt;%&lt;br /&gt;% Does NOT give a value for phi or Sc&lt;br /&gt;% But I know Sc = 1/det(At)*cos(phi)&lt;br /&gt;&lt;br /&gt;% some convention&lt;br /&gt;% Aty = [ m n ] = top left 2x2 of At&lt;br /&gt;%       [ o p ]&lt;br /&gt;m = At(3,3);&lt;br /&gt;n = At(3,4);&lt;br /&gt;o = At(4,3);&lt;br /&gt;p = At(4,4);&lt;br /&gt;&lt;br /&gt;Aty=[m,n;o,p];&lt;br /&gt;&lt;br /&gt;% My system of nonlinear equations&lt;br /&gt;% (0) Sc^2*det(Aty) = cosPhi&lt;br /&gt;% (1) Sc(mcosThy-nsinThy) = cosPhi*sB&lt;br /&gt;% (2) Sc(ocosThy-psinThy) = -Al/sB *cosPhi&lt;br /&gt;% (3) Sc(msinThy+nsinThy) = 0&lt;br /&gt;% (4) Sc(osinThy+pcosThy) = 1/sB *cosPhi&lt;br /&gt;&lt;br /&gt;% from (3)&lt;br /&gt;Thy=atan(-n/m);&lt;br /&gt;&lt;br /&gt;% more convention&lt;br /&gt;a1=(m*cos(Thy))-(n*sin(Thy));&lt;br /&gt;a2=(o*cos(Thy))-(p*sin(Thy));&lt;br /&gt;a3=(m*sin(Thy))+(n*cos(Thy));&lt;br /&gt;a4=(o*sin(Thy))+(p*cos(Thy));&lt;br /&gt;&lt;br /&gt;Bey=((1/det(Aty)*a1)^2);&lt;br /&gt;&lt;br /&gt;% from (1) &amp; (2)&lt;br /&gt;Aly=-(sqrt(Bey)*a2)/(det(Aty));&lt;br /&gt;&lt;br /&gt;% from (0)&lt;br /&gt;% Sc^2 =(1/det(Aty))*(cos(Phi))^2;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;function [A]=createA(Alx, Bex, Aly, Bey)&lt;br /&gt;% function [A]=createA(Alx, Bex, Aly, Bey)&lt;br /&gt;% creates 4x4 A matrix in proper form&lt;br /&gt;&lt;br /&gt;Ax=[sqrt(Bex) 0;-Alx/(sqrt(Bex)) 1/(sqrt(Bex))];&lt;br /&gt;Ay=[sqrt(Bey) 0;-Aly/(sqrt(Bey)) 1/(sqrt(Bey))];&lt;br /&gt;A=[Ax, zeros(2); zeros(2), Ay];&lt;br /&gt;&lt;br /&gt;function [Rt]=createRt(Thx, Thy)&lt;br /&gt;% function [Rt]=createRt(Thx, Thy)&lt;br /&gt;% creates a 4x4 gauge rotation matrix&lt;br /&gt;% NOTE: this actually produces Rt^-1&lt;br /&gt;% st ScAt(Rt^-1)=CA&lt;br /&gt;&lt;br /&gt;Rx=[cos(Thx) sin(Thx);-sin(Thx) cos(Thx)];&lt;br /&gt;Ry=[cos(Thy) sin(Thy);-sin(Thy) cos(Thy)];&lt;br /&gt;&lt;br /&gt;Rt=[Rx zeros(2); zeros(2) Ry];&lt;br /&gt;&lt;br /&gt;function [ScC]=createC(At,Rt,A)&lt;br /&gt;% function [ScC]=createC(At,Rt,A)&lt;br /&gt;% creates scalar*C by: ScC = At*Rt*A&lt;br /&gt;% note: Rt is really Rt^-1&lt;br /&gt;% (in all my scripts we never use the "proper" Rt&lt;br /&gt;% so for efficiency, I write Rt^-1 as Rt.&lt;br /&gt;&lt;br /&gt;ScC=At*Rt*A;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105795702284518337?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105795702284518337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105795702284518337'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105795702284518337' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105787677657670588</id><published>2003-07-10T15:39:00.000-07:00</published><updated>2003-07-10T15:39:36.580-07:00</updated><title type='text'></title><content type='html'>Two new functions: createA and createRt. I tested these by producing At*Rt*A^-1, which is supposed to produce a scalar multiple of C, but the results came out blatantly incorrect. &lt;br /&gt;&lt;br /&gt;I'm not sure where to start troubleshooting now. Perhaps its time to call it a day. We have a lecture at 4:30 by Paul Kunz, and I'd like to purchase my Quantum Mechanics book at the bookstore before then. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105787677657670588?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105787677657670588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105787677657670588'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105787677657670588' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105787461155378511</id><published>2003-07-10T15:03:00.000-07:00</published><updated>2003-07-10T15:03:31.560-07:00</updated><title type='text'></title><content type='html'>Hm. Plugged in scalar gauge (I've been careless with notation... I refer to it as Sc here, and write it as either a lambda or lambda-tilde in my notes) and that made my system redundant--i.e. I have a relation between lambda and cos(phi), but right now that relation is arbitrary. Perhaps solving for the C matrix will clear this up. &lt;br /&gt;&lt;br /&gt;Interesting developments. &lt;br /&gt;&lt;br /&gt;Status: I can now (I think) extract alpha and beta from R,At,M. I also have an extra equation in my system that I can use to self-check. I can no longer find values of phi or lambda... which means I can no longer check for correctness between the invariant X and Y subspaces. But oh well--that's what I "intuitively" expected, in the first place.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105787461155378511?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105787461155378511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105787461155378511'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105787461155378511' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105787217536238873</id><published>2003-07-10T14:22:00.000-07:00</published><updated>2003-07-10T14:22:55.420-07:00</updated><title type='text'></title><content type='html'>&lt;em&gt;Aside:&lt;/em&gt; I would like to purchase some introductory electronics kits so I can learn about circuit analysis and do all that fun stuff. I'm willing to invest and entire paycheck towards the cause of learning electronics.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105787217536238873?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105787217536238873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105787217536238873'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105787217536238873' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105787163787160040</id><published>2003-07-10T14:13:00.000-07:00</published><updated>2003-07-10T14:13:57.933-07:00</updated><title type='text'></title><content type='html'>AHA! (1) no, Rt must be coupled. ((Otherwise what's the point of calling C the decoupling matrix?)) (2) I found an error that might fix things: I forgot to include the scale gauge in my calculations!&lt;br /&gt;&lt;br /&gt;Lesson: If there is no immediately apparent error in the program, write out the equation by hand enough times until you realize you were neglecting one of the elements.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105787163787160040?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105787163787160040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105787163787160040'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105787163787160040' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105786972649238348</id><published>2003-07-10T13:42:00.000-07:00</published><updated>2003-07-10T13:50:04.386-07:00</updated><title type='text'></title><content type='html'>Potential solution: I think I oversimplified when I assumed that Rt^-1=[Rx,0;,0,Ry]. R is a general gauge rotation, perhaps it is coupled?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105786972649238348?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105786972649238348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105786972649238348'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105786972649238348' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105786839863980068</id><published>2003-07-10T13:19:00.000-07:00</published><updated>2003-07-10T13:19:58.793-07:00</updated><title type='text'></title><content type='html'>A problem: I ran my lattice thus far with (.3,.4,.03) and got values of phi that were different for the decomposeAx and decomposeAy functions. Something is fishy here.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105786839863980068?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105786839863980068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105786839863980068'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105786839863980068' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105786802464054390</id><published>2003-07-10T13:13:00.000-07:00</published><updated>2003-07-10T13:13:44.690-07:00</updated><title type='text'></title><content type='html'>A complete solution is not far away.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105786802464054390?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105786802464054390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105786802464054390'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105786802464054390' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105785817782616197</id><published>2003-07-10T10:29:00.000-07:00</published><updated>2003-07-10T10:29:37.850-07:00</updated><title type='text'></title><content type='html'>Oh! Now it's easy! I just need to figure out MatLab's rules for inverse trig functions, but I can now find all my unknowns for the x phase space. It should be even easier in the Y phase space. &lt;br /&gt;&lt;br /&gt;Is the gauge scalar the same for the X and Y subspaces? It must be. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105785817782616197?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105785817782616197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105785817782616197'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105785817782616197' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105785789650302256</id><published>2003-07-10T10:24:00.000-07:00</published><updated>2003-07-10T10:24:56.556-07:00</updated><title type='text'></title><content type='html'>&lt;em&gt;Retroactive note for yesterday (Wed, Jul 9)&lt;/em&gt;: Last night we also had the first class of the Travis School of Quantum Mechanics. We discussed the 1-dimensional wave equation. Something completely off-topic that I learned: I can derive trigonometric identities *VERY* easily by using Euler's equation. Fascinating!&lt;br /&gt;&lt;br /&gt;Currently: I'm working on the AtRt^-1=CA equation that I was working on yesterday. I've reached the "ugly" step which involves a nonlinear system of equations requiring some "clever algebra."&lt;br /&gt;&lt;br /&gt;Some discoveries: let the top left 2x2 of At (At is the eigenvector-derived matrix) be At'' (A-tilde 1,1).  &lt;br /&gt;Sc*det (At''Rt^-1) = cos^2(phi)det(Ax) = 0, where Ax is the nice form of the decoupled A matrix for the x phase space.&lt;br /&gt;Thus, as the det of  a rotation is 1 and the det of the composition of matrices is the product of their individual determinants:&lt;br /&gt;Sc*det(At")=cos^2(phi)&lt;br /&gt;&lt;br /&gt;I now have a way to find the decoupling angle given the scalar gauge and vice versa.&lt;br /&gt;&lt;br /&gt;When I solve the equations, I end up with a nonlinear system (sines, cosines, square roots... oh my). I will continue to work and see if I can get a nice, analytic solution.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105785789650302256?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105785789650302256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105785789650302256'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105785789650302256' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105785255911844156</id><published>2003-07-10T08:55:00.000-07:00</published><updated>2003-07-10T08:55:59.143-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;Books Checked Out From SLAC Library:&lt;/strong&gt;&lt;br /&gt;Applications of Discrete and Continuous Fourier Analysis, Weaver&lt;br /&gt;Fourier Analysis and Generealized Functions, Lighthill&lt;br /&gt;Introduction to the theory of Fourier's series and integrals, Carslaw&lt;br /&gt;Problems and Solutions in E&amp;M&lt;br /&gt;Quantum Physics: An Introduction&lt;br /&gt;Differential Forms, Schrieber&lt;br /&gt;6 Not-So-Easy Pieces&lt;br /&gt;(Additionally, there was some other book on logic and ideas... but I returned that the day I checked it out)&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105785255911844156?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105785255911844156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105785255911844156'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105785255911844156' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105779766996760204</id><published>2003-07-09T17:41:00.000-07:00</published><updated>2003-07-09T17:41:10.033-07:00</updated><title type='text'></title><content type='html'>FFT&lt;br /&gt;X(k) =       sum  x(n)*exp(-i*2*pi*(k-1)*(n-1)/N), 1 &lt;= k &lt;= N.  ((sum from n=1 to N))&lt;br /&gt;(from matlab)&lt;br /&gt;&lt;br /&gt;Dr. Yan showed me an example of how to use FFT on some data that we made up on the spot. I still need to learn the theory before I can really grasp the mechanics of the fourier transform. &lt;br /&gt;&lt;br /&gt;Insight on my current goal: AtRt=CA&lt;br /&gt;I want to extract alpha-x, beta-x, and alpha-y, beta-y and ultimately find C.&lt;br /&gt;&lt;br /&gt;At the A matrix extracted from the eigenvector matrix of M.&lt;br /&gt;Rt is the yet-unknown gauge rotation. (form: Rt = [Rx,0;0,Ry], each a 2x2)&lt;br /&gt;C is the yet-unknown decoupling matrix (known form, 5 unknowns)&lt;br /&gt;A is the A matrix in proepr form ([Ax,0;0,Ay]).&lt;br /&gt;&lt;br /&gt;I came up with this on my own from straightforward analysis... but I foolishly gave up on the approach because I thought there were too many unknowns and not enough constraints. (As it is, that may yet be the case.) However, Dr. Yan suggested the very same approach (not knowing I already had it outlined in my lab notebook), and pointed out some subtleties (i.e. the existence of Rt--there is always a gauge transform!) that make my life a lot easier. &lt;br /&gt;&lt;br /&gt;The idea is that the diagonal 2x2 elements of C are identity matrices multiplied by a cosine. This means the diagonal 2x2 elements of (CA) are just the diagonal 2x2s of A multiplied by the cosine. Thus, I can treat this as nearly the exact same thing as the 2x2 case! There are, of course, some complications: I have a gauge rotation Rt (which is also decoupled) and the angle of the cosine needs to be determined. All in all, that is 3 extra constraints. I now have, however, two decoupled systems. I believe that with some quality time spent in the library, I should be able to extract alpha and beta for x and y from this information.&lt;br /&gt;&lt;br /&gt;Once alpha and beta are extracted, things begin to unravel very nicely. I will then know At, Rt, and A. C = AtRtA^-1. From there I can determine cosine ... hey, I think that's what Dr. Yan was trying to explain to me: In the above case I don't think I need to figure out what the cosine is, only that it is the same for the x and y systems! Anyway, from there I can determine cosine and the four elements of W by clever algebra.&lt;br /&gt;&lt;br /&gt;Never trust someone who uses the phrase "clever algebra." &lt;br /&gt;&lt;br /&gt;This is very exciting. Maybe my computer will have fixed itself and today will be a near-perfect day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105779766996760204?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105779766996760204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105779766996760204'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105779766996760204' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105778490971467769</id><published>2003-07-09T14:08:00.000-07:00</published><updated>2003-07-09T14:08:29.760-07:00</updated><title type='text'></title><content type='html'>Can  I extract alpha and beta from R and M in the 4x4 coupled case?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105778490971467769?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105778490971467769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105778490971467769'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105778490971467769' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105778299649905387</id><published>2003-07-09T13:36:00.000-07:00</published><updated>2003-07-09T13:36:36.546-07:00</updated><title type='text'></title><content type='html'>4by4coupled program works fine, actually.&lt;br /&gt;It turns out I was just being irresponsible with my value for s.&lt;br /&gt;s &lt;&lt; k but, by what factor? this is something I am very curious about...&lt;br /&gt;&lt;br /&gt;In the 2x2 case, I was able to use an important fact:&lt;br /&gt;M^TSM=S &lt;==&gt; det(M)=1&lt;br /&gt;((Thus far, I have found no simple "check" for symplecticity in the 4x4 case.))&lt;br /&gt;Using this equivalence, I was able to explicitly find the bound on k and L in a simple lattice (similarly, I could find the bound for any other 2x2 lattice) using det(M)=1, instead of the nebulous symplecticity definition.&lt;br /&gt;&lt;br /&gt;I wonder what I can extract from 4x4 symplecticity that would be useful in providing constraints on s for a given lattice. All I know right now is that s needs to be small.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Also notable&lt;/em&gt;: it turns out the matrix that I derived yesterday has a special name... some kind of Courant matrix. Dr. Yan was trying to show it to me and I said "oh yes! I have that somewhere in my notes." Of course, it only took him 2 minutes, whereas I spent a good 30 minutes deriving it on my own.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105778299649905387?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105778299649905387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105778299649905387'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105778299649905387' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105777879317466371</id><published>2003-07-09T12:26:00.000-07:00</published><updated>2003-07-09T13:24:01.226-07:00</updated><title type='text'></title><content type='html'>A pedagogical breakthrough! The eigenplane is the coordinate system relative to the beam (i.e. the betatron oscillation in the eigenplane is decoupled). The eigenplane wobbles with the skews. &lt;br /&gt;&lt;br /&gt;z st z(i+1) = M(zi)&lt;br /&gt;&lt;br /&gt;then Z = matrix of 4 such z's (to be specified): Z=[z1 z2 z3 z4]&lt;br /&gt;&lt;br /&gt;Z(i+1)=MZ(i)&lt;br /&gt;M = Z(i+1)Z^-1(i)&lt;br /&gt;&lt;br /&gt;What are zi's? Correspond to four degrees of freedom for orbit. The axes (I think... or something along those lines) of the eigenplanes. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105777879317466371?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105777879317466371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105777879317466371'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105777879317466371' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105777529605342880</id><published>2003-07-09T11:28:00.000-07:00</published><updated>2003-07-09T11:28:16.033-07:00</updated><title type='text'></title><content type='html'>Posted new web blog to accompany my lab book.&lt;br /&gt;&lt;br /&gt;I'm still trying to figure out how to extract C, the decoupling matrix given M and R (and A for Md, where Md is the non-skewed matrix). I thought I would just use MC=CMd, but these calculations ended up becoming tedious and the results were ultimately trivial--i.e. I ended up with more statements about constraints on Md and M than I did about the unknowns. (Although maybe I just didn't look hard enough)&lt;br /&gt;&lt;br /&gt;There must be an easier way to extract C.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105777529605342880?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105777529605342880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105777529605342880'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105777529605342880' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105777174184417418</id><published>2003-07-09T10:29:00.000-07:00</published><updated>2003-07-09T10:29:01.800-07:00</updated><title type='text'></title><content type='html'>A recap of what I've done thus far: &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Monday, June 23&lt;/strong&gt;&lt;br /&gt;-Lecture: Introduction to SLAC, Helen Quinn&lt;br /&gt;Basic "what's a meson" introduction to particle physics&lt;br /&gt;&lt;br /&gt;-SLAC Tour &lt;br /&gt;I wish I had brought my camera&lt;br /&gt;&lt;br /&gt;-Lunch with Mentors&lt;br /&gt;I met Dr. Yiton Yan today. I also met Rahul, the EE grad student (for Martin Lee) sharing my office with me.&lt;br /&gt;&lt;br /&gt;-Worksite with Mentors&lt;br /&gt;Read Dr. Yan's lecture notes on Lie Algebraic methods for beam accelerator physics. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tuesday, June 24&lt;/strong&gt;&lt;br /&gt;-Safety and GERT training&lt;br /&gt;I felt pretty bad about getting drowsy during this... but I learned a few cool things: the "powers that be" (FDA or some similar agency) say that an annual dose of 5000 mrems of radiation is "safe." Americans receive an annual dose of 360 mrems. As a GERT employee, I am allowed 100 mrems of SLAC-related radiation. I'm not supposed to go and spend it all in one place.&lt;br /&gt;&lt;br /&gt;-Got my badge and dosimeter&lt;br /&gt;It was like a prize for staying awake through GERT training.&lt;br /&gt;&lt;br /&gt;-Visited the control room&lt;br /&gt;Dr. Yan was very hopeful that they would be able to bump up the luminosity to a new record (MIA set the record at 6.2 cm^-2 s^-2 earlier this year), but there were complications with the machine. These were later cleared up, but futher errors (human and ideological) aborted the run. Here's what was interesting and edifying, though: usually the accelerator engineers/physicists who dial in the magnet modifications  make drastic changes in percentages... i.e. instead of shifting all the magnets all the way, all at once; they shift the magnets each by a fraction of the total change and then make sure the beam is still stable. An unstable beam would be a catastrophic error. Anyway, Dr. Yan noticed that the current set up of the machine was very noisy--the betatron oscillations were kind of wild... but even then the luminosity was very high. He was hoping that by using MIA to tame the betatron oscillations, he would be able to bump the luminosity even higher. The noisy beta, however, led MIA to suggest a drastic solution. When the engineers were dialing in the solution, the beam destabilized, and the run was aborted. Why? MIA's solution was nonlinear, and they were dialing in the solutions linearly (i.e. 10% of the solution across the board... 20% of the solution, etc.).&lt;br /&gt;&lt;br /&gt;Dr. Yan mentioned this possibility after the run was aborted. In the meanwhile, I learned some basic MatLab commands for MIA analysis.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Wednesday, June 25&lt;/strong&gt;&lt;br /&gt;Dr. Yan was right. He analyzed the step-by-step dialing of solutions, and he found that even on the virtual machine the beam would destabilize using that method. He used MIA to develop a nonlinear, incremented solution... but unfortunately, he was unable to ever implement this because the beam shuts down after this week and the machine will be changed.&lt;br /&gt;&lt;br /&gt;I continued to work on M=ARA^-1, looking for an analytical solution showing that this was implied from S=M^tSM, the symplectic condition. No real breakthroughs, but I did some nice calculations by hand. Rahul taught me a little bit about SVD, and that was very fascinating. I'll have to review it later.&lt;br /&gt;&lt;br /&gt;Today I also met Rahul's mentor, Martin Lee. He's a very fun guy--he laughs a lot and makes the room a lot livelier when he's around.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Thursday, June 26&lt;/strong&gt;&lt;br /&gt;3pm: Dr. Yan presents his findings.&lt;br /&gt;&lt;br /&gt;I continue working on my symplectic&lt;==&gt;normalized rotation proof in the 2x2 case. Dr. Yan hinted at using eigenvectors. At the time this was very nonintuitive... but reading Bretscher made this much clearer. &lt;br /&gt;&lt;br /&gt;I also took a break today to go to the library. I check out some books and thought about Maxwell's Demon and entropy (the weather is conducive to that). &lt;br /&gt;&lt;br /&gt;Showed  Dr. Yan my first draft of my project description.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Friday, June 27&lt;/strong&gt;&lt;br /&gt;My goal was to get this M=ARA^-1 thing DOWN by today. And I think to a reasonable extent, I did. I was also able to get my computer account set up. &lt;br /&gt;&lt;br /&gt;Took notes on Bretscher's Linear Algebra text on SVD. The process makes much more sense. It's an approximation method... kind of like a Taylor series. &lt;br /&gt;&lt;br /&gt;Finalized Project Description.&lt;br /&gt;&lt;br /&gt;What I know thus far:&lt;br /&gt;-for a 2x2: symplectic &lt;==&gt; det =1. unfortunately this does not hold for the 4x4 case.&lt;br /&gt;-for a symplectic M that can be reduced to M=ARA^-1, 0&lt;(a+d)^2&lt;4. This didn't make too much sense to me initially, but Dr. Yan commended me on the discovery and said that if this condition did not hold, then A would not be invertible and M would be an unstable one-turn-map. It makes sense!&lt;br /&gt;-So here's how it works: we get M by analyzing the lattice elements (quad matrices, K, and drift matrices, L)... then we decompose into ARA^-1. I later (one week later) found out that we decompose this FURTHEr into A = ScAtRt, where Sc is a scalar, At is an "A" matrix in "proper form" (with alpha and beta), and Rt is a gauge rotation. This is fine because we en dup with: M=ScAtRtR(1/Sc)Rt^-1At^-1 = AtRtRRt^-1At^-1... but the three middle matrices are rotations, so this is equivalent to M = AtRAt^-1. Thus, At is a valid A. &lt;br /&gt;-For a 4x4, this is a little more complicated and there is a decoupling matrix, C. M=CARA^-1C^-1. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Monday, June 30&lt;/strong&gt;&lt;br /&gt;First day of lecture week. The beam is down and most of the researchers aren't going to work this week. &lt;br /&gt;&lt;br /&gt;-Lecture: How Accelerators Work, John Fox&lt;br /&gt;Decent intro... I wasn't compelled to take very detailed notes (the slides went by very quickly and his topics were a little haphazard). Once again Microwave-dude from QuarkNet makes a fuss about... microwaves.&lt;br /&gt;&lt;br /&gt;-Accelerator Tour, John Fox&lt;br /&gt;Once again I forget my camera. I'm amused by all of the photos of people pretending to press "emergency off" buttons and such.&lt;br /&gt;&lt;br /&gt;-Lecture: Particle Detectors, Colin Jessop&lt;br /&gt;This was actually a decent lecture--but I learned a lot about how sleepy I was. (And the rest of the group... Helen Quinn included) I later ended up looking up Dr. Jessop's website to learn a little more about the things that I missed by being drowsy... to little avail. I found most of the material in Helen Quinn's book (The Charm of Strange Quarks), however, and I no longer feel like I missed out.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tuesday, July 1&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;-Lecture: Quantum World and Particles, Helen Quinn&lt;br /&gt;-Lecture: Hidden Scatterer/Feyngames, Helen Quinn&lt;br /&gt;I now have a good understanding of how to use Feynman diagrams and my Particle Data Group book. A very happy morning!&lt;br /&gt;&lt;br /&gt;-Exploration: Cosmic Rays&lt;br /&gt;Learned about cosmic ray scintillator detectors. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Wednesday, July 2&lt;/strong&gt;&lt;br /&gt;-Lecture: Dark Matter and GLAST, Larry Wai and Eduardo do Couto e Silva. Dr. Wai's lecture was a little dense (well, both were)... I need to read more about Majorana and Dirac particles. GLAST is something Sandi might know a little about.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Thursday, July 3&lt;/strong&gt;&lt;br /&gt;-Lecture: BABAR-What For? Pat Burchat&lt;br /&gt;A *GREAT* lecture from my future P134 professor. See notes for good stuff about CP violation. &lt;br /&gt;&lt;br /&gt;-Eduardo poses a riddle: Why do pions decay preferentially into muons, not electrons? (I found the answer about a week later: it has to do with conservation weak isospin and the fact that leptons have mass. Counter-intutively, the particles' masses are what allows them to violate weak isospin. It doesn't decay into taus often because taus are too massive.)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Monday, July 7&lt;/strong&gt;&lt;br /&gt;Back to work... put all my 2x2 discoveries into MatLab. &lt;br /&gt;I did more analysis on my simple lattice. Found a few things.&lt;br /&gt;-calculated an explicit M for given k,L&lt;br /&gt;-conditions on k,L s.t. M is symplectic and M=ARA^-1: k^2L^2&lt;2.  (This makes creating 2x2s a lot easier using my MatLab program... now I know why I kept getting spurious results for "ugly" k-L combinations.)&lt;br /&gt;-Tried to find a non-zero closed one-turn orbit... does not exist. (Proved this)&lt;br /&gt;&lt;br /&gt;Instructions: start working on a 4x4 with skew quads&lt;br /&gt;-found 6 constraints on a symplectic 4x4... not immediately useful to me. (They are related to DoF of the hamiltonian)&lt;br /&gt;-found that KS = SK. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tuesday, July 8&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;How is C related to S?&lt;br /&gt;I have found that the diagonal 2x2 submatrices of any M whose lattice has a skew matrix are preserved...i.e. are equivalent to the case without the skew. Thus, the skew only changes the off diagonal 2x2s. I can now extract R from M. &lt;br /&gt;&lt;br /&gt;Ran into a hitch: Why aren't my A matrices in proper form? I have to rotate them! (Of course. I should have known this already.) I spent the night developing a 2x2 rotation algorithm on MatLab. This should be easily extendible to the 4x4 case.&lt;br /&gt;&lt;br /&gt;Also spent some time learning MatLab MIA commands.&lt;br /&gt;&lt;br /&gt;QUESTIONS&lt;br /&gt;1. I'm still confused about orbits and 4 degrees of freedom. Given an orbit matrix Z (4 columns), I can find a one turn map, M, by M = Z(i+1)*Z(i)^-1.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105777174184417418?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105777174184417418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105777174184417418'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105777174184417418' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-5561841.post-105776849128481944</id><published>2003-07-09T09:34:00.000-07:00</published><updated>2003-07-09T09:34:51.210-07:00</updated><title type='text'></title><content type='html'>Test Post. Please Disregard.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5561841-105776849128481944?l=fliptomato.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105776849128481944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5561841/posts/default/105776849128481944'/><link rel='alternate' type='text/html' href='http://fliptomato.blogspot.com/2003_07_01_archive.html#105776849128481944' title=''/><author><name>Flip</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
