Wikipedia:Reference desk/Archives/Mathematics/2012 February 9
Mathematics desk | ||
---|---|---|
< February 8 | << Jan | February | Mar >> | February 10 > |
Welcome to the Wikipedia Mathematics Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
February 9
[edit]Unique Factorization Domain
[edit]Are Z[sqrt(2)], Z[cuberoot(2)], and Z[sqrt(2),cuberoot(2)] unique factorization domains? Black Carrot (talk) 06:43, 9 February 2012 (UTC)
- No. For instance, and . Sławomir Biały (talk) 12:23, 9 February 2012 (UTC)
- But don't and ?
- Plus fixed a minus to a + in your bit above hope okay Sławomir. Dmcq (talk) 12:42, 9 February 2012 (UTC)
- Sorry, I was just being stupid. The class number of and is one. So both of rings of integers are UFDs. Sławomir Biały (talk) 13:17, 9 February 2012 (UTC)
- How do you calculate the class number? Black Carrot (talk) 00:03, 10 February 2012 (UTC)
- Well there's articles Ideal class group and class number formula here but if you really want to get into all that I can warn you that entire books have been written on the subject. Dmcq (talk) 09:33, 10 February 2012 (UTC)
- The first, Z[sqrt(2)] (see Quadratic integer) is an Integrally closed domain (necessary for it to be a UFD, you have to remember to check the Z [?] guy is the whole ring of integers of the number field, as indicated above), and is even a Euclidean domain, using the norm, and hence a UFD, so everything is as nice & tangible as you could want there.John Z (talk) 11:08, 12 February 2012 (UTC)
- Well there's articles Ideal class group and class number formula here but if you really want to get into all that I can warn you that entire books have been written on the subject. Dmcq (talk) 09:33, 10 February 2012 (UTC)
- How do you calculate the class number? Black Carrot (talk) 00:03, 10 February 2012 (UTC)
- Sorry, I was just being stupid. The class number of and is one. So both of rings of integers are UFDs. Sławomir Biały (talk) 13:17, 9 February 2012 (UTC)
Offsetting an ellipse
[edit]It's been a long time since I thought much about geometry, so bear with me, I'm sure this is rather elementary.
I am drawing an ellipse using a rather straightforward function that takes x,y as the center, two radius lengths (a and b), and a rotational angle as its arguments. The ellipse draws perfectly fine under such conditions. For a rotational angle of 0, a ends up being the horizontal radius and b ends up being the vertical radius, like this:
The function spits out a bunch of coordinates (the number depends on how many steps there are, but that isn't very important for this question) that I can then plot on a grid.
Here's the thing. I need to adjust the plotting of the ellipse so that x,y isn't the center, but coincides with one of the edges of the ellipse. So in the above example, I would shift the ellipse over so that what is now -a would be at point C. No problem for a single axis, of course (just offset every x coordinate by a), but how do I do this for arbitrary angles, keeping the -a point in the above ellipse centered on x,y? It smells like trigonometry to me and I'm very rusty on that.
Another way to do this would be to plot the ellipse coordinates at 0 degrees rotation, then rotate the ellipse with the rotational point being one edge of it. But I've no idea how to do those sorts of transformations on a bunch of x,y coordinates.
Any suggestions? --Mr.98 (talk) 17:06, 9 February 2012 (UTC)
- As to rotating points, the general (computer guy, at least) thing is to apply a rotation matrix to each point. Slightly more generally, affine transformations (shears, translations, dilatations, and rotations) can be composed ad-nauseum by taking their corresponding transformation matrices and multiplying them together (in order of application). When applied to a point, the resulting matrix applies all those transformations in one go. So for example if you wanted to rotate something by 0.1 radians about (3,-10). First you'd translate to move the coordinate system so the centre of rotation is at the origin) - so you'd apply the translation matrix for x-3, y+10. Then you'd apply the rotation matrix. And then you'd translate back to where you came from (x+3, y-10). -- Finlay McWalterჷTalk 20:11, 9 February 2012 (UTC)
- To be a bit more specific, let's say your basic ellipse is given by
- then the rotation counterclockwise by θ is
- and the translation so the center is at (h, k) is
- --RDBury (talk) 21:57, 9 February 2012 (UTC)
- To be a bit more specific, let's say your basic ellipse is given by
- (ec) I remember you do VB, so this may be helpful. Here's R (programming language) code that does what you want:
function(x,y,a,b,theta)
{
# (x,y) is leftmost intersection of first axis with ellipsis
# a and b are first and second axes
# theta is rotation angle of first axis with x axis (in radians, of course)
pp=seq(0,2*pi, by=0.01); # Note that pp now is an array
xx= -0.5*a*cos(pp); # xx is an array (minus sign to place first point at left side of origin)
yy=0.5*b*sin(pp); # and yy is an array
# do the rotation (of the arrays xx and yy)
xrot=cos(theta)*xx-sin(theta)*yy;
yrot=sin(theta)*xx+cos(theta)*yy;
# translate to make x,y correspond to intersection of first axis with ellipsis
tx = xrot[1] # Arrays in R are 1-based, tx is first point in xrot
ty = yrot[1] # Ditto for yrot
xx = xrot + x - tx # xrot is array, x and tx are scalars
yy = yrot + y - ty # yrot is array, y and ty are scalars
# return result
data.frame(x=xx,y=yy);
}
- If you want to try it out in R, create the function using "fix(elip)", and substitute the empty function with the code above. To see the result, after defining the function type
dd=elip(5,90,7,2,0.3)
plot(dd,asp=1) # asp is the aspect ratio
abline(h=90) # horizontal line to highlight the leftmost intersection of first axis with ellipsis
abline(v=5) # ditto vertical line
- Thanks! I will puzzle over this a bit further. --Mr.98 (talk) 20:55, 10 February 2012 (UTC)
Stationary functions of a functional
[edit]What kind of techniques would a mathematician employ when looking for the functions which minimise or maximise the functional given by subject to a constraint of the form Thanks for your help — Preceding unsigned comment added by 129.67.37.224 (talk) 23:57, 9 February 2012 (UTC)
- In general, the techniques for functional optimization problems are those of the calculus of variations. Here you have a quadratic functional on an affine hyperspace, which is unbounded both above and below. Consider where is the given constant for the constraint, and . Then is polynomial in :
- Now, if for instance we fix an with and , e.g. , the above quantity is a non-constant affine function of , hence unbounded from above and from below (homework?)--pma 08:50, 11 February 2012 (UTC)