Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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. 🙂
Solved! Go to Solution.
You should define A(t) as a function like this
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
Unfortunately the symbolic solver is simply not capable enough to solve your equation
So you should use the numeric methods of Prime, either a solve block with "find" or the "root" function.
As your equation has multiple solutions as Cornel already stated, you get different solutions for different guess values
You may also use the root function without a guess value if you provide a range for the t-values
Here you see these three solution in the plots
We cannot distinguish the first two so we zoom in
And in case you are actually looking for the position(s) of the maximum, you may use the derivative in the root function
or at a different position and this time using the root function with a guess
Because your A(t) cut t-axis in multiple points.
You should define A(t) as a function like this
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
Unfortunately the symbolic solver is simply not capable enough to solve your equation
So you should use the numeric methods of Prime, either a solve block with "find" or the "root" function.
As your equation has multiple solutions as Cornel already stated, you get different solutions for different guess values
You may also use the root function without a guess value if you provide a range for the t-values
Here you see these three solution in the plots
We cannot distinguish the first two so we zoom in
And in case you are actually looking for the position(s) of the maximum, you may use the derivative in the root function
or at a different position and this time using the root function with a guess