CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: matlab question

  1. #1
    Join Date
    Apr 2009
    Posts
    1

    matlab question

    being new and all i was wondering how i would get started with writing a matlab code for friedmann equation for a closed universe?


    \left(\frac{\dot{a}}{a}\right)^2 = \frac{8\pi G \rho}{3} - \frac{kc^2}{a^2}

  2. #2
    Join Date
    Mar 2009
    Posts
    51

    Wink Re: matlab question

    This is the C++ forum. Matlab forum is -> that way -> I think.

  3. #3
    Join Date
    Apr 2008
    Posts
    725

    Re: matlab question

    if you want to solve it over some domain, use one of the built-in ode solvers. you will need to re-arrange the ode into a set of coupled first-order odes. I used ode45 last time I needed to do something similar.

  4. #4
    Join Date
    Apr 1999
    Posts
    27,449

    Re: matlab question

    Quote Originally Posted by skorp View Post
    being new and all i was wondering how i would get started with writing a matlab code
    What is your C++ question?

    Regards,

    Paul McKenzie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured