Homework Statement
Describe how to create a coding matrix A so that A-1
has no fractions
The answer is Multiply a few type III matrices together, so that det A = 1
What I put is to just use an upper triangular matrix, since the det of an upper triangular matrix is 1 and you have to do...
Homework Statement
To modify a future value program so that a user inputs the data w/ a GUI
Homework Equations
principal = principal * (1+apr)
The Attempt at a Solution
Anyone familiar w/ python coding? I'm a beginner. I'm absolutely stuck on this problem, I seem to have...
I am studying a problem releated to memory leakage.
Now, there are many tools to check memory leak at run-time (dynamic analysis), and some tools can check memory leakage at compile-time (static analysis). But I have some questions:
How do you think to prevent memory leakage from coding phase...
Basic C++ Coding?
Assume that name and age have been declared suitably for storing names (like "Abdullah", "Alexandra" and "Zoe") and ages respectively. Write some code that reads in a name and an age and then prints the message "The age of NAME is AGE." where NAME and AGE are replaced by the...
Hi all,
Can I get a circuit to realize manchester coding and decoding using ordinary digital TTL ICs and comparators. Any link or image will be helpful.
TIA
-Devanand T
After i had studied and implemented codes to perform basic arithematic operations, factorial of a number, look-up tables, i got stuck at a pretty silly problem, while coding with the 80085 simulator:
MVI A,000H
STA 0001H
MVI A,0001H
STA 0002H
LXI H,0001H
MOV A,M
LXI B,0002H
STAX B
HLT
This...
Suppose you have a Markov source of symbols (or more generally, a stationary ergodic source). If you Huffman encode longer and longer extensions (that is, you take blocks of n source symbols at a time, letting n increase) of this source, then the frequencies of 1's and 0's in the encoded...
help needed please.. don't need the code. but i need formula or any source that can help me. i want to try code it myself. =)
can anyone help me with this function:
// Function to be used to update the position. Given the current position,
// the direction in which the tank is looking...
Hi I'm taking a multimedia systems course and I'm preparing for my exam on tuesday. I'm trying to get my head around LPC compression on a general level, but I'm having trouble with what is going on with the linear predictive filter part. This is my understanding so far:
LPC works by...
import acm.graphics.*;
import acm.program.*;
import java.awt.Color;
import java.util.Iterator;
import java.util.Random;
import java.util.List;
public class LAB1
{
final static int BLOCKWIDTH = 50;
final static int BLOCKHEIGHT = 10;
final static int NBLOCKS = 10;
final static...
For those who have worked in oil companies or finance companies as coders, are your work over there have more emphasize on algorithm design/analysis or class/library creation/maintenance? Forgive me if this is a stupid question as I don't have much experience in writing codes. And I understand...
Hello,
Trying to code a microchip PIC18C452.
Desired:
4 steps per rotations
pulses per second=1/15
t wait =15s
#define #define #define #define
clrf
STEP_ONE b’00100000’ STEP_TWO b’00010000’ STEP_THREE b’00001000’ STEP_FOUR b’00000100’
STEP_NUMBER
; PortB<5:2> are used to connect...
A data file contains a sequence of 8-bit characters such that all 256 characters are about as common: the maximum character frequency is less than twice the minimum character frequency. Prove that Huffman coding in this case is not more efficient than using an ordinary 8-bit fixed-length code...
"coding" - instilling a subconscious fear
I just came across this article from 2005 and I found it curious
http://www.washingtonpost.com/wp-dyn/content/article/2005/10/01/AR2005100101196.html
I don't know a crap about psychology or medicine, so can somebody with knowledge explain if this...
Can some1 kindly help me understand the following code, I am trying to translate the following code in VBA:
Thanks in advance
FFLC = FLC ...i understand this part
ANGLE=PI/6 !Suppose 30 Degrees ...i understand this part
Do 21800 I=i,5 ...Don't understand this
FLC=FFLC-COS(ANGLE)*NDIA...
Hi guys,
I have to do a lot of equations in a report, and I was wondering if there is a package for Latex so that I can just cut and paste matlab/excel coding straight into Latex and it will set it out properly. i.e. so that instead of typing \frac{5+x}{4} I can just write (5+x)/4?
When I've been programming in Python for a while I noticed that the color coding in IDLE goes away. If I restart IDLE, the colors come back. Why is it doing this? How can I maintain the color in there without having to restart a bunch of times?
Thanks
Hi,
This is a general question rather than an explicit question, so apologies for not using the template.
I'm a bit confused by the relationship between frequency and data rate in a communications system and wondered if someone could help clarify please.
Say I want to achieve a data...
please i need help in this code
program wide_boiling
implicit none
integer :: i, j, m
real :: Trosee, Tbulle, P, RR(100), vf(100),
real :: aT1(3), aT6(3), ap1(3), z(3), ap2(3)
real ::, x(3), T, k(3,10)
m=0
T=518.67
m=m+1
do i = 1,3
k(i,m) =...
Homework Statement
Consider Herman the Fly. Herman must exist on the edges of a cube. At the start of a trial, Herman is randomly placed on one of the eight corners of a cube and poison is placed on one of the eight corners. Herman starts moving along one of the three edges. When he comes...
Hi
Let us suppose we transmit the binary digit '1'. The probability of not receiving '1' is p. Thus the probability of receiving '1' is 1-p. Suppose we send a longer code of length n. The probability of this code being received correctly is (1-p)^n.
Now I don't understand this next...
Homework Statement
Lab Tasks
1. Change the definition of the lab3.EcoOne class so that it is in a composition
relationship with the example1.Terrarium class. Define a void method named
‘addCaterpillar’ which adds a new example1.Caterpillar to the composed
Terrarium, and starts the Caterpillar...
I want to code a macro that will take in an integer as a row number and insert two rows above that row. This will repeat in a for loop. The problem is that I'm not familiar with VB syntax. Here's what I have so far:
Sub Insert_Rows_Loop()
Dim CurrentSheet As Object
Dim x As Integer
'...
Homework Statement
The goal of this problem is to write a MIPS function flipimage which flips an image
horizontally. For example, a simple image is shown on the left, and its flip is shown on
the right.
A picture is composed of individual dots, or pixels, each of which will be represented...
hi! everyone, um new to this forum and would like some help and few tips on designing a coding and decoding circuit to replace my car ignition switch with, for now all i know is the basics of logic circuit operations, still not enough to perform the function. can someone help plis!
Hi,
I was wondering first off, if it is possible to write code so that you could fill out fields in a web browser so that you could automate a process. I'd like to make a script that basically goes online submits my username and password and then fills out 8 hours worked in the appropriate...
I am currently in the middle of a three month Java programming assignment, working on the worst code I ever thought to see. It looks like it was written by a monkey who was being rewarded by hitting a giant button marked "Copy and Paste". One class file that I'm working on has over 10,000...
Hello. I'm currently taking a class at the University of Minnesota, "The Mathematics of Coding Theory". In the class we have a final project on a topic of our choice that relates to the class. The guidelines are very broad and needs to only result in a final report of 10-20 pages answering a...
I Have been using A Byte of Python, and I am now stuck on the Continue Statement. Here is my code.
#!/usr/bin/python
#Filename: continue1.py
while True:
s = input('Enter something : ')
if s == 'quit':
break
if len(s) < 3:
print('Too Small')
continue
print('Input is of...
i've been away more than 5 yrs and can't find the thread that used to tell you how to code latex. you could practise there too without burdening others with your errors. where is that thread? or something similar?
in friendship,
prad
Hello!
I am working on some software to control oscilloscopes and function generators in a physics lab. The situation I am faced with at the moment is to be able to translate integers into a form which can be loaded into a device.
So basically I have a file which looks like this...
Homework Statement
Let S = {0101, 1010, 1100}. From first principles, find a basis B for the dual code C orthogonal (couldn't find symbol)
Homework Equations
http://www.maths.uq.edu.au/courses/MATH3302/files/codingnotes.pdf
i'm using page 19,20 and 21
The Attempt at a Solution...
Hi, I wanted to know how to solve this question , its not a homework question i am really asking for , more the general way to solve these types of questions... I don't understand how it forms into another matrix. I have the answer attached as well , but could some one explain ? (I don't think...
Homework Statement
For a function f(x) over the interval [a,b], simpson's rule approximates the defenite integral:\intf(x) dx = h/3*[f0 + 4(f1 + f3+ ...+ f2n-1) + 2(f2 + f4 + ... + f2n-2) + f2n]
where h = (b-a)/n
fi is f(a + i*h)
Given an error epsilon, I need to write an executable program...
Hello all. I am designing a Gauss jordan elimination program using c++. I need a little help to code this as I am not too familiar with arrays and the operations you can perform on them.
The first question I have is how would I swap rows? I know its probably really simple but I cannot find...
Hi
The source coding theorem says that one needs at least N*H bits to encode a message of length N and entropy H. This supposedly is the theoretical limit of data compression.
But is it? Or does it only apply to situations where only the frequency (probability) of a given symbol is known...
I'm trying to code a laplace transform function into my calculator. Right now, I'm doing it by definition:
\int{e^{-st}*f(t)dt} from 0 to \infty
But whenever I try to use a transcendental function, it loops infinitely. I figured this is because the calculator cannot evaluate \int{sin(x)dx}...
The source coding theorem tells us that given a discrete probability distribution, there is an optimal encoding for it. Is it possible to go in the reverse direction? That is, suppose you start with an encoding of a discrete random variable X whose distribution is unknown. Assuming that this...
is there any place i could go that's good to learn computer programming? i want to learn how to make websites because even though I am only about 14 i know i want to be in some type of education. Preferably math or science. I have a general love for computers and love to make websites. But i can...
This came up in my logic course.
The professor writes that in GF(2), the polynomials 3xy^5 and \frac{1}{2}x^2y respectively can be reduced to 3xy and xy.
I understand that y^5=(y^2)(y^2)y=(1)(1)y=y, but also in GF(2), for any x, we have x+x=0. So it seems to me that 3xy^5 can be further...
I have been asked to code a Bubble Sort using a pointer array and pointer notation as opposed to the square bracket notation...(there should be two uses of square brackets when declaring the arrays). It will not work! :(
Basically the data does not sort. I am trying to swap pointer array...
I am just starting out with this and am having trouble getting the code to translate to a webpage. It is not really clear as to how this is to be done. I have created a basic program in notepad, saved it as .php and have attempted to open in IE but get a message that says something about not...
Hello everyone,
Question : One version of Linear Predictive Coding (LPC) has been adopted as a standard for speech compression in mobile communications systems. How Linear Predictive Coding (LPC) can reduce the bandwidth in this speech coding ?
Can someone please help me with this...