PDA

View Full Version : Help with a mathematical problem



DixieGuns
08-22-22, 12:44
Math junkies, A bit of help please.
I’m trying to build a formula in an nc editor I recently purchased. I have esprit TNG on my laptop but it requires me to be on the server to use. The editor does not and I want to build a macro to spit out quick turn and bore canned cycles I can email to the operators.
I’m stumped on calculating the XZ coordinates at end of radius. I know I learned this in algebra 2 but dang that was a long time ago lol.
Radius and angle will vary.
https://i.imgur.com/otqWN50.jpg

FromMyColdDeadHand
08-22-22, 16:43
Can’t you get to x,z with sin and cos for the angle and the radius of the circle?

For the radius
Z=-0.619
X=0.256

For
XZ of 4.256, -4.619

Please don’t let this be a part for a nuclear reactor…. My wife did the kids math during pandemic. I was chemistry and history…

Wish M4C was easier to post pics to.

Diamondback
08-22-22, 19:36
GL, OP, this look like something I once drew on the whiteboard during a lecture.

Subject? "Why I Became A History Major."

DixieGuns
08-22-22, 19:57
Just went dig out of my toolbox from back when I was still making chips in the shop
https://i.imgur.com/47sD1ls.jpg

Diamondback
08-22-22, 20:02
deleted, hangfire

DixieGuns
08-22-22, 20:27
Can’t you get to x,z with sin and cos for the angle and the radius of the circle?

For the radius
Z=-0.619
X=0.256

For
XZ of 4.256, -4.619

Please don’t let this be a part for a nuclear reactor…. My wife did the kids math during pandemic. I was chemistry and history…

Wish M4C was easier to post pics to.

Your math is spot on. I just need to figure out how to put it into an equation that I can just enter length, radius, and angle.
Sort of like hidden math in an excel sheet.
The X will by X*2 being its on diameter = 4.5126
https://i.imgur.com/3EwELML.jpg

FromMyColdDeadHand
08-22-22, 21:31
Length, as in z before the curve starts? -4 above?

Straight Shooter
08-22-22, 21:33
https://youtu.be/4ZfpwfQ58Ds

EXACT answer here gents.

DixieGuns
08-22-22, 21:38
Length, as in z before the curve starts? -4 above?
I got the z figured out. Radius cos(Angle)
.875cos(45)=.6187
The .2563 has me stumped at the moment

DixieGuns
08-22-22, 21:39
https://youtu.be/4ZfpwfQ58Ds

EXACT answer here gents.

That’s exactly how I feel at the moment lol

FromMyColdDeadHand
08-22-22, 22:03
.....A. B
1. Radius 0.875
2. Angle 45
3. Length -4
4.
5. X 0.256281566
6. Z -4.618718434

Cut and paste With into 5B
=B1-(B1*COS(RADIANS(B2)))

And Z in 6B
=B3+(-(B1*(SIN(RADIANS(B2)))))
***A couple of extra parenthesis for 'clarity')

Only works on 0<angle<90
I only checked 0, 45, 90, but it worked.
Not terribly sure on the last line. It looks like it is initial position is Z=-4, X=4 does that mean that x is just the same absolute value as z, or it is +8 from it? It looks like you could just add

something like
=ABS(B3)+(2*(B1-(B1*COS(RADIANS(B2)))))

A math and excel expert is laughing their ass off- but if I have learned anything from the internet, the fastest way to get the best answer is to post something wrong- people can't let it go.

Thanks for the distraction from the two presentations that I have due this week....

DixieGuns
08-22-22, 22:08
.....A. B
1. Radius 0.875
2. Angle 45
3. Length -4
4.
5. X 0.256281566
6. Z -4.618718434

Cut and paste With into 5B
=B1-(B1*COS(RADIANS(B2)))

And Z in 6B
=B3+(-(B1*(SIN(RADIANS(B2)))))
***A couple of extra parenthesis for 'clarity')

Only works on 0<angle<90
I only checked 0, 45, 90, but it worked.
Not terribly sure on the last line. It looks like it is initial position is Z=-4, X=4 does that mean that x is just the same absolute value as z, or it is +8 from it? It looks like you could just add

something like
=ABS(B3)+(2*(B1-(B1*COS(RADIANS(B2)))))

A math and excel expert is laughing their ass off- but if I have learned anything from the internet, the fastest way to get the best answer is to post something wrong- people can't let it go.

Thanks for the distraction from the two presentations that I have due this week....

Thank you and good luck with your presentations!

Disciple
08-23-22, 22:04
I got the z figured out. Radius cos(Angle)
.875cos(45)=.6187
The .2563 has me stumped at the moment

That's just (r - r cos(a)) I believe.

FromMyColdDeadHand
08-23-22, 23:16
That's just (r - r cos(a)) I believe.

That's how I took it.