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...
I would like to learn some PHP and I would like some advice on where to start, what I would like to do is the following:
Customers to visit the store and only be able to view Regular Prices of the Products.
I would like to hide the Special/Sale Prices for certain Products (and be able to...
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...
hey
i have built a coding program like 1 year ago
and now that i kinda studied crythography in class, i was wondering what my coding system is worth (codes text)
i won't give too much details, but my program ,
first : replaces every character by a 7 bits (sequence of seven 0s or 1s)
then...
a "C" problem
is anybody aware of numerical methods in C language...
numerical methods include Newton-Raphson method,Euler's method,Milne's method,Newton's forward and backward implementation,Gauss divergence backward and forward interpolation.
pls help me,i will b so thankful 2 them who...
I am currently doing some research in Clifford Algebra. My topic is to find explicit representation of its basis through matrices with entries in clifford algebra itself. At this moment I am trying to write code in mathematica to do KroneckerProduct and Quaternion multiplication. Now I have...
Assembly language coding problems...
Homework Statement
I am an electrical engineering student and have some HW problems. On the IAS system, what would machine code instruction look like to load the contents of memory address 2??
I came up with 00001001. Does this look correct?? Also...
#include<stdio.h>
#include<conio.h>
class info
{
int name,roll;
public:
void input();
void output();
}
void info::input()
{
printf("Enter your name and rollno \n");
scanf("%c%d" ,&name,&roll);
}
void info::output()
{
printf("Your name is %c \n" ,name);
printf("Your rollno is &d...
Construct a [4, 7^2, 3] code. I know it exists because 7 is prime, so there are 6 MOLS. However, I am not quite sure how to go about constructing this code.
Hi all
any ideas wat computational fluids dynamics is all about..
how should i go about using it, using codes?
Wat kind of codes are used?
Is it C programming or stuff like that?
Thanks
regards
ss
Hi, I'm a php student, or rather I'm teaching myself php with the aid of some friends and co-workers for a project which I'm planning - to create an online game made with php and sql, I was wondering 2 things
Firstly, would anyone be able to give me any advice on what I'm likely to need to...
I feel really naughty... I've searched for ages and ages to find how to type in equations and such using the pretty code on PF... But to no avail. I've read it before, but lost it...
Can anyone point me in the right direction?
Please don't yell at me... :cry:
Thanks,
Andy
AMW Bonfire
I have a program due in couple hours. Professor expects us to know C++ when we never really went over programming; he expects us to just know it .. anyhow
I have two inputs used with scanf
it's toll and norm
these two values need to be put into a data file created by the program...