so this is what I've come up with, but I'm only getting zeros
#include <stdio.h>
#include <math.h>
int main ()
{
int numbers[20], y[20];
int x;
printf("Enter x data set:");
for(x=0;x<20;x++)
{scanf("%d",&numbers[x]);
x = numbers[x];}
y[x] = 5 * numbers[x] + 4...
Homework Statement
I'm trying to create a c program that will allow for multiple inputs for a simple linear equation, and will print those values. the program I've created only returns one valueHomework Equations
y = mx + b
The Attempt at a Solution
#include <stdio.h>
#include <math.h>...
I'm having a brain fart and I can't figure out
xe^-(x-2).
I tried integrating by sub., which led me to;
U = x^2-4x+4
du = 2x -4
But that doesn't solve it, can anybody tell me ?
Homework Statement
im wondering if e^i(x+y) + e^-i(x+y)
can be simplified to 2cosxcosy
Homework Equations
2cosx= e^ix + e^-ix
so i separated e^i(x+y) + e^-i(x+y)
into;
e^ix(e^iy) + e^-ix(e^-iy)
can that become 2cosxcosy?
Homework Statement
so I am asked to derive the group velocity of an equation in terms of its frequency and wavelength, but I am stuck at a simple derivative, which is df/d(1/n) where is the frequency and n is the wavelenght.
Homework Equations
the group velocity is dw/dk
The...
Homework Statement
Which of the following functions, when extended as 2pi periodic function, are equal to their Fourier series?
a. F(x) = 2x, pi<x<-pi
b. f(x)= 3 abs value (x)
Homework Equations
none
The Attempt at a Solution
After i graphed the functions into periodic...
Homework Statement
A conducting sphere of radius 0.01 m has a charge of 1.0 × 10–9 C deposited on it. The magnitude of the electric field in N/C just outside the surface of the sphere is
Homework Equations
E=kq/r^2
EA=q/eo
The Attempt at a Solution
I tried the first equation...
Homework Statement
integrate
f(x,y) = sqrt(x^2+y^2)
over triangle with vertices (0,0) (0,sqrt2) (sqrt 2, sqrt 2)
Homework Equations
x= rcosO, y = rsinO
x^2+y^2=r^2
The Attempt at a Solution
im supposed to use a double integral converted to polar coordinates,
so i used...
well basically i found the kinetic energy right as it hits the spring, by using the equation
K=U.
which would be 1/2mvf^2-1/2mvi^2=-mgh
the initial velocity would be zero, so that cancels, and leaves me with
1/2mvf^2=-mgh
so i use the kinetic energy produced by the distance from the spring...
[b]1.
A block of mass m = 1.6 kg is dropped from height h = 61 cm (height above the spring, not total height) onto a spring of spring constant k = 1820 N/m (Fig. 8-38). Find the maximum distance the spring is compressed.
Homework Equations
K=-U, since all energy is conserved, work would...