Skip to main content
12-Amethyst
December 20, 2024
Solved

Help me solve this differential equation

  • December 20, 2024
  • 2 replies
  • 980 views

Hi

 

I would like to solve a differential equation for a set of variables. I hope I have clarified my problem in the attached file (prime 7), otherwise just let me know.  

 

All help is very appreciated! Thank you 🙂

Best answer by terryhendicott

Hi,

Like this

Capture.JPG

Have Prime 10 so cannot save the file as Prime 7

2 replies

21-Topaz II
December 20, 2024

Hi,

Like this

Capture.JPG

Have Prime 10 so cannot save the file as Prime 7

25-Diamond I
December 20, 2024

@ksk_10594232 wrote:

Hi

 

I would like to solve a differential equation for a set of variables. I hope I have clarified my problem in the attached file (prime 7), otherwise just let me know.  🙂


I can't see any differential equation. In a differential equation you have an equation which uses a function and its derivative(s) and you are looking for the function. In your case you are just looking for a simple scalar value N. So its an ordinary equation you can solve using Primes numeric methods (= root-function or a solve block with 'find').

 

I would prefer to set up the whole calculation to be dependent on N and y, define a function which gets the value of N for a given value of y and only then at the end define the vector of y-values and call that function vectorized to get all five results.

So you should leave the functions alpha.p and Phi.p being functions and not redefine them to be simply variables with a vector content.

Once you have a function which calculates N for any given y, you may also plot the function over a certain range of y-values.

I noticed that there is a gap from approx. y=130.7 mm to 131.3 mm where no solution could be found. Have not investigated further as to where this may come from. If its an issue come back and ask again.

Have no Prime 7, so the attached file is in Prime 10 format. But the picture shows it all, so you should be able to duplicate it.

Werner_E_0-1734690768754.png

 

12-Amethyst
December 20, 2024

Thanks to both of you for a quick response! That helped me a lot ❤️