Search:

Type: Posts; User: TiagoPereira

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    9,030

    Check -levmar- Levenberg-Marquardt in C/C++...

    Check -levmar-

    Levenberg-Marquardt in C/C++
  2. Replies
    9
    Views
    9,030

    If your objective is to implement a nonlinear...

    If your objective is to implement a nonlinear model already tested and parameterized, your task is not difficult. However, if you have a set of data, and want to find an equation, I recommend you to...
  3. Just to follow up on my previous post: the NAG...

    Just to follow up on my previous post: the NAG library costs around U$2,500 (Brazilian price; we have some additional taxes) plus "maintenance" (U$400,00), whereas the IMSL is cheaper: U$ 195 (no...
  4. Yes, sure, please, see my post: ...

    Yes, sure, please, see my post:

    http://cboard.cprogramming.com/c-programming/129281-how-compute-natural-logarithm-factorial-large-numbers.html
  5. No, no! Please, don't use that approximation for...

    No, no! Please, don't use that approximation for statistical tests!

    If you want to implement a routine for other purposes, where you precision is not that important you can use it. If you need...
  6. Yes, your results look fine, as long as you don't...

    Yes, your results look fine, as long as you don't need an extreme precision. I have used this simple function to compute the exact P-value for a couple of statistical tests, and they match exactly...
  7. Nice! Did you include the math.h library? I am...

    Nice! Did you include the math.h library? I am under linux, so the commands to compile were:

    gcc -Wall -I/usr/local/include -c lnfactorial.c

    and then:

    gcc -L/usr/local/lib lnfactorial.o ...
  8. I guess I have solved this question with a simple...

    I guess I have solved this question with a simple function by noting the additive effects on the logarithm scale:




    double lnfactorial( int a)
    {

    int y;
    double z;
  9. How to compute the natural logarithm of a factorial: large numbers

    Hello all,

    Is there a function in C to compute the natural logarithm of a factorial, say, log(factorial(646))?

    In most statistical packages, such as R, the factorial can be computed up to 177...
  10. Many thanks, guys! John, I basically need...

    Many thanks, guys!

    John, I basically need everything is statistics. right now I am eager to find a function that computes the natural logarithm of large factorials. For example, in R it is...
  11. Why's that?

    Why's that?
  12. Thank you so much! This is a step further: I did...

    Thank you so much! This is a step further: I did not know that there were commercial libraries with statistical functions. My R world is too free to think about that.

    The commercial prices are,...
  13. Question on libraries for scientific computing (statistics)

    Dear all,

    Although I am very new to the C programming language, I am really, but really happy with its capacities compared to standard statistical packages (much, much faster for large scale...
  14. Thank you very much! worked like a charm!

    Thank you very much! worked like a charm!
  15. Replies
    6
    Views
    1,262

    Don't waste your time with that tutorial, buy the...

    Don't waste your time with that tutorial, buy the book: Sams Teach yourself C in 21 days, and learn C with success.
  16. How to fix a simple problem with division of numbers

    Dear all,

    I am writing a simple program that performs some statistical calculations. The code looks like:




    #include <stdio.h>
    #include <math.h>
  17. Many, many thanks! Your tips were really helpful,...

    Many, many thanks! Your tips were really helpful, guys!

    I have installed all libraries (MingGW), updated the built-essential, etc.. etc... without success, however. Then, I solved the problem...
  18. tiago@tiago-laptop:~/Desktop$ head hwe.c ...

    tiago@tiago-laptop:~/Desktop$ head hwe.c
    #include <stdio.h>
    #include <math.h>

    int x, n;
    float f_A;
    float chi2 = 0;
    int genotype[4];
    int expected[4];
  19. Thanks, but the same error still remains I speak...

    Thanks, but the same error still remains I speak R and Stata. So, I am very used to lists. Before posting a question, it stands to logic that I google around the problem.
  20. How to fix an error during compiling:_mingw.h

    Dear all,

    I just have written my very first C code, and, as everybody else, got an error during compiling.

    on terminal (linux, ubuntu):

    gcc hwe.c -lm hwe
    gcc: hwe: No such file or directory...
Results 1 to 20 of 20