Troubleshooting a Singular Matrix When Modeling a Curve

AI Thread Summary
The discussion revolves around troubleshooting a singular matrix error encountered while modeling a curve using sine regression. The user attempts to manually derive a sine function in the format A*sin B(x-c) + d, using specific minimum, maximum, and random points. Key calculations for A and D are confirmed as correct, but there is confusion regarding the value of B, with a suggestion to use π/45 instead of 2π/45. Additionally, it is emphasized that calculations should be done in radians unless specified otherwise. The user seeks clarification on whether their approach is correct and why they are not obtaining sensible results.
Peter G.
Messages
439
Reaction score
0
When I try and model a curve using a sine regression with my graphic calculator, it returns an error message that says: Singular Matrix

I decided then to do it by hand. Here are three points.

Minimum: (0,554.8), Maximum: (45, 1220.5) and a random point (20, 830.7)

I want something in the format of: A*sin B(x-c) + d

This is what I did, is it correct?

A = (1220.5-554.8)/2
B = (2*pi)/45
D = (1220.5+554.8)/2
C = One unknown, so I used the random point shown to solve:

(Should I have calc in radians or degrees?)

My steps: ( I will use letters for simplicity)

830.7 = A*sinB(x-c)+d
830.7 - D = A*sinB(x-c)
Ans/A = sinB(x-c)
sin-1(Ans/A) = B(x-c)
Ans/B=x-c
-c=(Ans/B)-x

But I am not getting anything sensible...

Is my calculator right or did I do anything wrong?

Thanks
 
Physics news on Phys.org
Peter G. said:
When I try and model a curve using a sine regression with my graphic calculator, it returns an error message that says: Singular Matrix

I decided then to do it by hand. Here are three points.

Minimum: (0,554.8), Maximum: (45, 1220.5) and a random point (20, 830.7)

I want something in the format of: A*sin B(x-c) + d

This is what I did, is it correct?

A = (1220.5-554.8)/2
B = (2*pi)/45
D = (1220.5+554.8)/2
C = One unknown, so I used the random point shown to solve:

(Should I have calc in radians or degrees?)
Unless a problem specifically gives a value as the measure of an angle in degrees, you should always use radians. Unfortunately, you don't say how the given information was derived. What are the units for the x variablle? That "45" makes me wonder if it not in degrees. The distance from max to min for a sine function is \pi radians or 180 degrees, NOT 2\pi radians or 360 degrees.

YOur formulas for A and D are correct.

30,7
My steps: ( I will use letters for simplicity)

830.7 = A*sinB(x-c)+d
830.7 - D = A*sinB(x-c)
Ans/A = sinB(x-c)
sin-1(Ans/A) = B(x-c)
Ans/B=x-c
-c=(Ans/B)-x

But I am not getting anything sensible...

Is my calculator right or did I do anything wrong?

Thanks
 
So I should do pi over 45 years instead of 2pi over 45?
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top