Recent content by sarrfriend

  1. S

    MATLAB MATLAB Need help with integration and plotting

    It would be better if you could use the following equation instead of the one written above: (1/y)dy = dx. Now, how do I plot y as a function of x after integrating?
  2. S

    MATLAB MATLAB Need help with integration and plotting

    Hi, I have been trying to integrate an equation and then plot the result using MATLAB but haven't figured out how to do it. Say, I have an equation of the form dy = (1/x)dx. I want to integrate the above equation and then plot y as a function of x. So, to integrate I do this: syms y x...
  3. S

    MATLAB MATLAB Matrix dimensional error in numerical integration

    Hi Chiro, Thanks the info. It worked. Sarrfriend
  4. S

    MATLAB MATLAB Matrix dimensional error in numerical integration

    Hi, I tried to numerically integrate an equation in MATLAB using the trapezium method. Here is the code that I wrote: ao = 1; X = 0:ao/10:ao; Y = 1/sqrt((power(Ho,2)*((O_m*power(X,-1))+(O_r*power(X,-2))+(O_l*power(X,2))))-(k*power(c,2))); age = trapz(X,Y); where the values for O_m...
  5. S

    How to Find the Trace of ABA^-1 in Component Form?

    Let A, B be matrices with components Aμν , Bμν such that μ, ν = 0, 1, 2, 3. Indices are lowered and raised with the metric gμν and its inverse gμν. Find the trace of ABA-1 in component form? Since A and B are generalized versions of tensors, finding their inverse becomes very tedious if we try...
Back
Top