This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% template created by: Russell Haering. arr. Joseph Crop | |
\documentclass[8pt,letterpaper]{article} | |
\usepackage{anysize} | |
\marginsize{2cm}{2cm}{1cm}{1cm} | |
\usepackage{listings} | |
\usepackage{color} | |
\usepackage{algorithm2e} | |
\usepackage{graphicx} | |
\usepackage{epstopdf} | |
\usepackage{courier} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = 2; | |
j = [0:n] | |
x = cos((j + .5) .* (pi / (n+1))) | |
f = 'exp(x)'; | |
y = eval(f) | |
xplot = -1 : .001 : 1; | |
coeffs = polyfit(x,y,n); | |
polyplot = polyval(coeffs,xplot); | |
subplot(2,1,1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;*********************************************************** | |
;* | |
;* LCDDriver.asm - V2.0 | |
;* | |
;* Contains the neccessary functions to display text to a | |
;* 2 x 16 character LCD Display. Additional functions | |
;* include a conversion routine from an unsigned 8-bit | |
;* binary number to and ASCII text string. | |
;* | |
;* Version 2.0 - Added support for accessing the LCD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CS261- Assignment 1 - Q.1*/ | |
/* Name: | |
* Date: | |
* Solution description: | |
*/ | |
#include <stdio.h> | |
#include<stdlib.h> | |
#include<math.h> | |
#include<time.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
void multi(int a[10][10], int b[10][10], int c[10][10]){ | |
int i,j,k; | |
for(i = 0; i < 10; ++i){ | |
for(j = 0; j < 10; ++j){ | |
int sum = 0; | |
for(k = 0; k< 10; ++k){ | |
sum += a[k][j]*b[i][k]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Decision variables */ | |
var a >= 0; | |
var b >= 0; | |
var c >= 0; | |
var t; | |
/* Objective function */ | |
minimize z: t; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <iostream> | |
#include <fstream> | |
#include <sys/wait.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <stdlib.h> | |
bool pipes_open(int words[],int count); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
@file main.c | |
@brief Lab 2 Starter Code | |
@version .01 | |
@mainpage Lab 2 Starter Code | |
@section intro Code Overview | |
@section hw Hardware Pin Out | |
Port A: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls Files > filenames.txt | |
for line in `grep .txt filenames.txt`;do | |
name=${line:0:-4} | |
mv Files/${name}.txt Files/${name}.dat | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <iostream> | |
#include <iomanip> | |
#include <string> | |
#include <fstream> | |
#include <cmath> | |
#include <vector> | |
using namespace std; |