Recent content by gpax42

  1. G

    MATLAB Lotka-Volterra Approximate Solution Error: Trapezoid Method in Matlab

    Thank you for the helpful response :smile: since I'm plotting the loglog of the difference between my final population values(global error) that resulted from halving my h-value, i believe youre correct in noting that my graph should have a slope of 1. This, however, begs the question of...
  2. G

    MATLAB Lotka-Volterra Approximate Solution Error: Trapezoid Method in Matlab

    I'm trying to calculate the error of the Trapezoid Method in my population approximations for wolves and moose over time given certain parameters. Ultimately what i need to do is perform a series of trapezoid approximations using different 'h' values. Each successive 'h' value I use is half...
  3. G

    How Do You Solve the Verhulst Equation for Logistic Population Growth?

    ahhh I see... when I separated variables, however, I found... \intdP/[P(1-P/k)] = \intrdt I then manipulated the left side to read K/[P(K-P)] ... after partial fractions... = 1/P + 1/(K-P) int[1/P + 1/(K-P) )dP] = int[rdt] following through with integration leads to...
  4. G

    How Do You Solve the Verhulst Equation for Logistic Population Growth?

    Hi all, it's been a over a year since I took my differential equations and linear algebra course and I'm currently enrolled in a class that assigned this problem as a sort of refresher on analytically solving differential equations. I can't seem to remember the proper approach to going about...
  5. G

    Solving the HARD Equation: Finding Values for A, B, and C | Step-by-Step Guide

    When I attempted the problem I managed to get C = -1, A = 4 and B = 2... any idea if this is right? I multiplied through to get a common denominator and then set the numerators equal to one another. A(x+1)(x) + B(x-1)(x) + C(x2-1) = 5x2+2x+1 I distributed and found... Ax2 + Ax +...
  6. G

    MATLAB Matlab Problem structured array

    i think i got it to work correctly... here's my code... ----------------------------------------------------------- function board = makeBoard(rows,cols) for rowIndex = 1:rows for colIndex = 1:cols board(rowIndex,colIndex).type = '-'; end end for index = 1:.1*rows*cols...
  7. G

    MATLAB Matlab Problem structured array

    thanks for the great advice :smile:... I wrote out the code for the algorithm. My first for loop looks something like this... function board = makeBoard(rows,cols) for rowIndex = 1:rows for colIndex = 1:cols board(rowIndex,colIndex).type = '-'; end end for index...
  8. G

    MATLAB Matlab Problem structured array

    Not sure if anyone here is familiar with MATLAB programming. I am supposed to create a structured array (resembling a game board) that acts as a predator/prey simulator. The user needs to specify the size of the game board. Within the gameboard I am supposed to represent a couple of different...
  9. G

    A number in matlab by default uses how much memory?

    A number in MATLAB by default uses how much memory? my professor asked me this question today and I wasnt sure. In MATLAB I assigned a random number to the variable x >> x = 5.5623 and then used the "whos" command to determine how many bytes were stored. According to "whos", the...
  10. G

    MATLAB A number in matlab by default uses how much memory?

    A number in MATLAB by default uses how much memory? my professor asked me this question today and I wasnt sure. In MATLAB I assigned a random number to the variable x >> x = 5.5623 and then used the "whos" command to determine how many bytes were stored. According to "whos", the...
  11. G

    Is Matrix A Invertible? Solving Linear System with Gaussian Elimination

    Homework Statement Suppose that Gaussian Elimination gives the soluiton of a Linear System Ax=c as x = x0 + a1x1 + a2x2, where A is a 6X6 matrix and a1 and a2 are arbitrary. Is the matrix A invertible? Explain The Attempt at a Solution I simply explained that due to properties of an...
  12. G

    Showing functions form a basis

    ooo alright, thanks for all the helpful explanations =D
  13. G

    Showing functions form a basis

    is it D = dt2/[(5/2)t2-(3/2)]
  14. G

    Showing functions form a basis

    Homework Statement Show that the functions po(t)=1, p1(t)=t, p2(t)=1/2(3t2-1), and p3(t)=(3/2)*[(5/3)t3-t) also form a basis for the vector space P3(R) ... "R" meaning all real numbers Homework Equations I know these polynomials are the first four Legendre polynomials The Attempt...
  15. G

    Finding System Solutions of the system Ax=0; A being a matrix

    My class learned about row operations today but I didn't think to apply them because I began this problem yesterday... Thanks for your advice :biggrin:
Back
Top