okay so i think i need to finish this and im done and like i said tis isnt my entire program
but can i get help with figuring whats wrong
im sure the error is here somewhere too
void...
Type: Posts; User: rafacnsoccer
okay so i think i need to finish this and im done and like i said tis isnt my entire program
but can i get help with figuring whats wrong
im sure the error is here somewhere too
void...
ugh why isnt this clicking to me, ive been working on it for so long that its not
also are there ways to reduce my program
smatrix(A,x,n);
n=4;
double **A_t, A_s, *y;
int i,j;
for (i=0; i<rowLength; i++)
for (j=0; j<colLength; j++)
A_t[j][i] = A[i][j];
A_t=(double **)calloc(4,sizeof(double *));...
this is not the entire code but i dnt know if i put a certain part in the correction location
its the red part
insert
smatrix(A,x,n);
n=4;
double A_t, A_s, y;
int i,j;
for (i=0; i<rowLength;...
yea so i am not too sure how to much on or how to translate this using the file pointer
see i look online and all i find are programs using this type of transpose, which i dnt know if its the same
insert
int main()
{
int i,j;
double a[4][5] = {{ 1.00, 2.00, 3.00, 4.00, ...
oh oops then its c sorry for the mistake, i guess i should have posted this in the other forum
i feel dumb now
okay when if its okay with u ill write post the instructions so it be clearer than me explaing\
By calling the function smatrix(A,x,n),with n=4,
which you will construct, determine the...
we are using c++
the class is called mae9 c/c++
okay that helps thanks, i finished the rest but the thing is now, i do not know how to write the program for the transpose A_s. which the formula used ismatrix A_s=(A+A_t)/2
the normal matrix i...
well this is the other part i didnt add hopefully this helps
char line[?];
double **A, *x;
A=(double **)calloc(4,sizeof(double *));
for(i=0;i<4;i++)
A[i]=(double *)calloc(4...
the purpose is to input the data into my program right?
by the way if this is what im suppose to do.
By using a pointer to pointer **A and the function calloc()
allocate the memory for the 4x4 matrix A[][].
By using a pointer *x and the function...
i have file pointer and i think an array, i just dnt know what number to use in the brackets.
the i have to filepoint this file to my program.
inputf.dat which is the following matrix or set of...
im guessing its when it comes to culculating the initial vector, as u can see from the out put.....
New vector:...
yea im searching now but sometimes i do not really understand some of the things they put up.
yea i understand that i am not sure how to tho. the top part i can but not sure about the n! part
okay my main problem right now is trying to convert this:
exp(x) = x^0/0! + x^1/1! + x^2/2! + x^3/3! + x^4/4! + ....
into programming language. the part that seems to confuse me is the factorial...
yea i changed that sutff and its working. now im gonna start the second loop/ hopefully it goes well
okay so i notcied what i did wrong.
okay so short and sweet. my answer comes out to be Integral = 49.661105
and im trying to match the answer we were given which is2.23272
any ideas?
okay sorry i forgot about that. but yea im not much of a programmer so this is all new to me
this is what i am suppose to do.:
Scan two doubles a and b (a<b).
Integrate numerically y=0.5*cos^2(x)+0.25 from x=a to x=b.
Use two do/while statements to continue the
...
#include <stdio.h>
#include <math.h>
int main()
{
int i;
double x_i,a_i,D,Q;
printf("\n");
for(i=0;i<20;i++)
{
double k=i;