## Search found 74 matches

Thu Jun 30, 2005 1:22 pm
Forum: C
Topic: Eigenvalue
Replies: 2
Views: 2589
Its also described here nicely
http://distance-ed.math.tamu.edu/Math64 ... node6.html

But it also says that there are methods for accelerating convergence of the QR method.

Could you point to me where it is explained on how to accelerate convergence of QR method?
Mon Jun 20, 2005 2:30 pm
Forum: C
Topic: Eigenvalue
Replies: 2
Views: 2589

### Eigenvalue

Hi,
I need to solve Eigen Value problem using a program.
How to do that?

Kaushik
Mon Jun 06, 2005 1:34 pm
Forum: Off topic (General chit-chat)
Topic: Registration Problem
Replies: 3
Views: 1928
The mail didn't contain any activation link ....
Sun Jun 05, 2005 4:36 pm
Forum: Off topic (General chit-chat)
Topic: Registration Problem
Replies: 3
Views: 1928

### Registration Problem

Hi, My friend is having problem with new registration. He is able to register and getting a new user id but is having problems when he tries to log in using that id. The message shown is "invalid or inactive user". He has also received confirmation mail saying that his account has been created. What...
Tue May 24, 2005 3:57 pm
Forum: C
Topic: Inverse Matrix Test Data
Replies: 1
Views: 1665

### Inverse Matrix Test Data

Hi,
I have written a code for Matrix Inversion. Its working fine for the small samples. But I want to test for more datas.
Could you give me the source from where I can get test data?

Regards,
Kaushik
Mon May 23, 2005 11:32 am
Forum: C
Topic: Dynamic Allocation for 2 dimensional Array
Replies: 6
Views: 2697

### Dynamic Allocation for 2 dimensional Array

i m doing like this #define MAXROWS 100 float *arr[MAXROWS]; //read no of rows & cols from user for(i=0=i<rows;i++) arr = (float *)malloc(col * sizeof(float)); Here I can have rows at the max MAXROWS. Is it possible to have dynamic allocation of memory without knowing/declaring the maximum no of rows?
Thu Apr 21, 2005 3:13 pm
Forum: C
Topic: Problem with rand()
Replies: 1
Views: 1671

### Problem with rand()

Hi,

Code: Select all

``````#include<stdio.h>
#include<stdlib.h>

main()
{
int i,j;

for(j=0;j<10;j++)
{
i = rand();
printf("\n%d",i);
}
}
``````
I am running this in Microsoft Visual C++.
The problem is I am getting same set of values everytime I run ... what should I do to get different sets of value ?
Tue Aug 06, 2002 3:23 pm
Forum: Volume 1 (100-199)
Topic: 151 - Power Crisis
Replies: 56
Views: 5855
plz help me out ......my program is just above it......
Wed Jul 31, 2002 11:57 am
Forum: Volume 1 (100-199)
Topic: 145 - Gondwanaland Telecom
Replies: 62
Views: 14615

### 145 WA

Why am i getting wrong answer??? #include<stdio.h> #include<stdlib.h> int which_time_group( int a ); float func(char ch,int *u1,int *u2,int *u3,float R[][3],int lt[],int ut[],int a,int b,int c,int d); main() {int a,b,c,d,ph1,ph2,lt[3],ut[3]; int u1,u2,u3,i=0; float amnt; char ch; float R[5][3]; R[1]...
Fri Jul 26, 2002 11:18 am
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 19438
i have tried what adrian has said....but still error.....
my p is 4357186184021382204544

but my prog output is 4357186184021382004736

the difference is in the last few digits......
i have noticed that i had forgotten & in scanf earlier but this time i did what adrian had told me..
Thu Jul 25, 2002 8:22 pm
Forum: Volume 1 (100-199)
Topic: 151 - Power Crisis
Replies: 56
Views: 5855

### RUN TIME ERROR 151

#include<stdio.h> #include<stdlib.h> void func(int N); main() {int N; do{ scanf("%d",&N); if(N == 0) exit(1); if(N==13) { printf("1\n"); continue; } /* printf("N = %d\n",N); */ func(N); }while(N != 0); } void func(int N) {int m; int check(int m,int N); for(m=1;m<=N;m++) if( check(m,N) == 1) { print...
Thu Jul 25, 2002 7:44 pm
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 19438
i m stiil getting error my p is 4357186184021382204544 when double p; scanf("%Lf",p); printf("%0.0f",p); ANS is 0 when double p; scanf("%Lf",p); printf("%0.0Lf",p); ANS is 280585630299556481757617220275852364727636170628410927600364713659709368033262555286057473837891584000 when double p; scanf("%lf...
Wed Jul 24, 2002 3:09 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 50739
I couldn't underwstand why i should i think the way tiwari ji has told me..... My prog is acting acoording to the input..... Even if what tiwari ji has told is true i don't see where my prog contradicts his argument....... Can any one give me a sample input where my prog fails to run..... i have alr...
Wed Jul 24, 2002 3:03 pm
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 19438
The problem is still there whether i use %lf or %Lf

I m unable to read the long sample input.
Wed Jul 24, 2002 1:05 pm
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 19438
But my problem is reading p when it is big.

Code: Select all

``````#include<stdio.h>
#include<stdlib.h>

main()
{int d;
long double p;
scanf("%f",p);
printf("%0.0f",p);
}
``````
For the sample input I m failing to read the input.....[/code]