Search:

Type: Posts; User: rafacnsoccer

Search: Search took 0.01 seconds.

  1. Segmentation Fault (core dumped).. this is what it said when i compiled

    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...
  2. Replies
    6
    Views
    1,066

    ugh why isnt this clicking to me, ive been...

    ugh why isnt this clicking to me, ive been working on it for so long that its not
  3. Replies
    6
    Views
    1,066

    also are there ways to reduce my program

    also are there ways to reduce my program
  4. Replies
    6
    Views
    1,066

    smatrix(A,x,n); n=4; double **A_t, A_s, *y;...

    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 *));...
  5. Replies
    6
    Views
    1,066

    i think theres a couple errors?

    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;...
  6. Replies
    19
    Views
    2,006

    yea so i am not too sure how to much on or how to...

    yea so i am not too sure how to much on or how to translate this using the file pointer
  7. Replies
    19
    Views
    2,006

    see i look online and all i find are programs...

    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, ...
  8. Replies
    19
    Views
    2,006

    oh oops then its c sorry for the mistake, i guess...

    oh oops then its c sorry for the mistake, i guess i should have posted this in the other forum
    i feel dumb now
  9. Replies
    19
    Views
    2,006

    okay when if its okay with u ill write post the...

    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...
  10. Replies
    19
    Views
    2,006

    we are using c++

    we are using c++
  11. Replies
    19
    Views
    2,006

    the class is called mae9 c/c++

    the class is called mae9 c/c++
  12. Replies
    19
    Views
    2,006

    okay that helps thanks, i finished the rest but...

    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...
  13. Replies
    19
    Views
    2,006

    well this is the other part i didnt add hopefully...

    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...
  14. Replies
    19
    Views
    2,006

    the purpose is to input the data into my program...

    the purpose is to input the data into my program right?
  15. Replies
    19
    Views
    2,006

    by the way if this is what im suppose to do. By...

    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...
  16. Replies
    19
    Views
    2,006

    looked at tutorial and still confused

    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...
  17. Replies
    1
    Views
    1,240

    getting wrong output

    im guessing its when it comes to culculating the initial vector, as u can see from the out put.....

    New vector:...
  18. Replies
    8
    Views
    3,069

    yea im searching now but sometimes i do not...

    yea im searching now but sometimes i do not really understand some of the things they put up.
  19. Replies
    8
    Views
    3,069

    yea i understand that i am not sure how to tho....

    yea i understand that i am not sure how to tho. the top part i can but not sure about the n! part
  20. Replies
    8
    Views
    3,069

    Taylor series regarding E^x

    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...
  21. yea i changed that sutff and its working. now im...

    yea i changed that sutff and its working. now im gonna start the second loop/ hopefully it goes well
  22. okay so i notcied what i did wrong. okay so...

    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?
  23. okay sorry i forgot about that. but yea im not...

    okay sorry i forgot about that. but yea im not much of a programmer so this is all new to me
  24. i am getting infinity in my program !!! ??

    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
    ...
  25. Replies
    1
    Views
    1,219

    new to this so i need help with error

    #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;
Results 1 to 25 of 25