Skip to main content
8-Gravel
September 22, 2023
Solved

Variable issue

  • September 22, 2023
  • 2 replies
  • 932 views

Hello, 

I want to see a variable from an equation. But I did some practice, and I couldn't get any solution. Can you help me I attached the file. 🙂

 

 

Best answer by Werner_E

You should define A(t) as a function like this

Werner_E_0-1695387217529.png

The way you defined it the function would only return 0 or 1 (false or true) because it was a boolean expression.

Now you can evaluate it at any position t

Werner_E_1-1695387322915.png

Unfortunately the symbolic solver is simply not capable enough to solve your equation

Werner_E_2-1695387351312.png

So you should use the numeric methods of Prime, either a solve block with "find" or the "root" function.

Werner_E_3-1695387433729.png

As your equation has multiple solutions as Cornel already stated, you get different solutions for different guess values

Werner_E_4-1695387477406.png

You may also use the root function without a guess value if you provide a range for the t-values

Werner_E_5-1695387528455.png

Here you see these three solution in the plots

Werner_E_6-1695387579488.png

We cannot distinguish the first two so we zoom in

Werner_E_7-1695387612570.png

 

And in case you are actually looking for the position(s) of the maximum, you may use the derivative in the root function

Werner_E_8-1695387713596.png

or at a different position and this time using the root function with a guess

Werner_E_9-1695387792490.png

 

 

 

 

 

 

2 replies

19-Tanzanite
September 22, 2023

Because your A(t) cut t-axis in multiple points.

Cornel_2-1695386574849.png

 

Cornel_0-1695385807942.png

 

Werner_E25-Diamond IAnswer
25-Diamond I
September 22, 2023

You should define A(t) as a function like this

Werner_E_0-1695387217529.png

The way you defined it the function would only return 0 or 1 (false or true) because it was a boolean expression.

Now you can evaluate it at any position t

Werner_E_1-1695387322915.png

Unfortunately the symbolic solver is simply not capable enough to solve your equation

Werner_E_2-1695387351312.png

So you should use the numeric methods of Prime, either a solve block with "find" or the "root" function.

Werner_E_3-1695387433729.png

As your equation has multiple solutions as Cornel already stated, you get different solutions for different guess values

Werner_E_4-1695387477406.png

You may also use the root function without a guess value if you provide a range for the t-values

Werner_E_5-1695387528455.png

Here you see these three solution in the plots

Werner_E_6-1695387579488.png

We cannot distinguish the first two so we zoom in

Werner_E_7-1695387612570.png

 

And in case you are actually looking for the position(s) of the maximum, you may use the derivative in the root function

Werner_E_8-1695387713596.png

or at a different position and this time using the root function with a guess

Werner_E_9-1695387792490.png