Go to Post I walk through the door, and suddenly the field breaks down. It must be my magnetic personality. - Swan217 [more]
Home
Go Back   Chief Delphi > Other > Math and Science
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-10-2016, 10:49
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Math Quiz 10

Quote:
Originally Posted by GeeTwo View Post

The center point where all of the angular displacements are the same is (1.16, -0.3).

At this point, the angular displacements are all exactly 1 degree.

Using the mathematical convention (x axis is 0 degrees and the y axis is 90 degrees), the points span the range from 139 to 199 degrees, inclusive.

Impressive work Gus.

Quote:
Of the stock excel fits, polynomial (quadratic by default) is better than the others, but is not an exact match.
Try rotating the polar axis and fitting the power function r = θb


Attached Thumbnails
Click image for larger version

Name:	rotated polar axis.png
Views:	14
Size:	6.5 KB
ID:	21103  

Last edited by Ether : 01-10-2016 at 11:18.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-10-2016, 22:01
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Math Quiz 10


Using the analysis results from Gus' last post, and the hint in post 13, the final solution step is quite straightforward.

Open a LibreOffice spreadsheet and populate columns A and B with the XY data. Label the data in column A x_data. Label the data in column B y_data.

In column C put degrees from 139 to 199 stepping by 1.

In column D put radians equivalent of column C: colD=colC/180*pi()

Initialize cell O2 to zero

Label cell P2 "_b" and initialize it to one.

Label cell L2 "_a" and put the formula = O2/180*pi()

In column E put the 2-parameter polar equation model:
r = (colD - _a)^_b

In column G put formula colE*COS(colD)+1.16
Label the data cells in this column x_model

In column H put the formula colE*SIN(colD)-0.3
Label the data cells in this column y_model

In cell M2 put the formula SUMXMY2(x_data,x_model) + SUMXMY2(x_data,x_model). This is the objective function for the Solver.

Tools | Solver
Target Cell M2
Minimum
By changing cells O2 : P2
Solve
click continue a couple of times to refine the value


Reply With Quote
  #3   Spotlight this post!  
Unread 02-10-2016, 03:38
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,614
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Math Quiz 10

When I saw θb, my mind read "theta flat" .

In any case, I found the answer a different way:
Assuming that r=θb, we know that dr/dθ = bθb-1, so that r/(dr/dθ) = θ/b. I therefore calculated the slope of r using the numbers given. The intercept of the line with r=0 is therefore (a good approximation to) θ0, and the slope is (approximately) 1/b. My spreadsheet gave a θ0 of 2.007223652 radians, or 115.0054438 degrees, and a b=0.499973651. These did not work out exactly, but a bit of tweaking found that 115 degrees and 0.5 worked "exactly".

Using the mathematical polar coordinate system centered on 1.16, -0.3 and rotated 115 degrees counterclockwise, the equation is simply:
r = √θ
Going back to calculate the original series:
D = [139..199]
θ1 = D * π / 180
θ = (D-115) * π / 180
r = √θ
x = cosθ1 + 1.16
y = sinθ1 - 0.3
An updated spreadsheet with a "double check" tab is attached. The maximum error in the reconstructed x and y is less than 10-14.
Attached Files
File Type: xlsx MQ10-polar-origin.xlsx (46.7 KB, 2 views)
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:32.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi