Answer to Question #26086 in C++ for hanrik




 The following formula gives the distance between two points (x1, y1) and (x2, y2) in the Cartesian plane: Given the center and a point on a circle, you can use this formula to find the radius of the circle. Write a program that prompts the user to enter the center and a point on the circle. The program should then output the circle&rsquo;s radius, diameter, circumference and area. Your program must have at least the following procedures:  

a. distance: This function takes four numbers as its parameters that represent two points in the plane and returns the distance between them.  

b. radius: This function takes as its parameters four numbers that represent the center and a point on the circle, calls the function distance to find the radius of the circle and returns the circle&rsquo;s radius.  

c. circumference: This function takes as tis parameter a number that represents the radius of the circle and returns the circle&rsquo;s circumference.  

d. area: Represents the radius of the circle and returns the circle&rsquo;s area
Unfortunately, your question requires a lot of work and cannot be done for free.   
Submit it with all requirements as an assignment to our control panel and we&#039;ll assist you.
the straight distance between two place on a map can be measured by a strip of paper and divider.use a ruler to measure the distance between the two places. if the line is quite curved, use a string to determine the distance, and then measure the string. find the scale for the map you're going to use. it might be a ruler bar scale or a written scale, in words or numbers. you can find the radius in the following way. 
write the equation of the line that is perpendicular to the given tangent line. this perpendicular goes through the stated center, and intersects the tangent; the perpendicular's slope is the negative reciprocal of the stated tangent line.
find the intersection (point t) of the tangent and radius line--then use the distance formula to find the radius, which is a segment from the stated center to the point t. the given equations arex2 + y2 = 16 …(i)and y2 = 6x …(ii)on solving the equation (i) and (ii),or x2 + 6x = 16or x2 + 6x – 16 = 0or (x + 8)(x – 2) = 0or x = 2 or – 8 is not possible solution∴ when x = 2, y = ± = ± = ±equation (i) is a circle with centre (0, 0) and meets axes at (±4,0), (0,±4)equation (ii) represents a parabola with axis as x - axis.points of intersection are a () and c (2,)these are shown in the graph below:area bounded by the circle and parabola= 2[area (oado) + area (adba)]area of circle = π(r) 2= π(4)2= 16π sq. unitsthus, required areathe area of the circle x2 + y2 = 16 which is exterior the parabola y2 = 6x is let c1 and c2 are two concentric circles with center o and radius of outer circle is 5 cm.given : ac is a chord with length 8 cm that is tangent to inner circle .to find : radius of inner circle i.e. odac is a tangent for c1 at d so,od ⏊ ac [tangent at a point on the circle is perpendicular to the radius through point of contact ]so, oad is a right-angled triangle at d .also it implies that od is perpendicular to the chord ac in c2so we have,ad = dc [perpendicular from the center to the chord bisects the chord]ac = ad + dc8 = ad + adad = 4 cmin △oad by pythagoras theorem(oa)2 = (od)2 + (ad)2(5)2 = (od)2+ (4)225 = (od)2 + 16(od)2= 9od = 3 cm first draw the directions, i recommand you draw them as vectors (like arrows):

- north points to the top
- south points to the bottom
- east points to the right
- west points to the left

now lets draw a line from the center of your "+"-sign at about a 45 degree angle to the top right.

this is the hiker that travels northeast. now the next hiker is simple, you just draw a line from the center to the east. that would be a straight line.

now we assume that the angle between the two hikers is 45 degrees. because that's one piece of the given information.

let's calculate how far the first hiker has traveled: 7,5 x 2 = 15 km.
let's calculate how far the second hiker has traveled: 6 x 2 = 12 km.

now we can use sine to calculate the distance between the two hikers.
note: please set your calculator on degrees. we call hiker's distance: x.

sin(45) = x / 15
15 * sin(45) = x

now we know the distance between the two hikers.

greetx jtk consider the following figure:two circles with centres q and r touch each other externally at x. another circle, with centre p, touches the other two circles internally at s and t. if pq = 8 cm, qr = 11 cm and pr = 9 cm, find the radius of circle r. May as well promote my comment to an answer.


You need to add points to a `Curve2D` object, then adjust the control points of the curve, and then finally draw the curve. So here's some simple, almost pseudo code:



```
var array_of_line_points # This already has the vectors which describe our line
for point in array_of_line_points:
  # The "get_perpendicular_vector()" function returns a vector that's a copy of the point, yet has been slid along a line parallel to two neighboring points. The "distance" variable is how far the control point should be from the originating point.
  var control_point1 = get_perpendicular_vector(point, distance)
  var control_point2 = get_perpendicular_vector(point, -distance)
  curve.add_point(point, control_point1, control_point2)
# ...In the draw function
func _draw():
  draw_polyline(curve.get_baked_points(), red, 2.0)

```

I got the inspiration for this from [Rob Spencer's page on Spline Interpolation](http://scaledinnovation.com/analytics/splines/aboutSplines.html). I'd like to make this more thorough (i.e. defining the `get_perpendicular_vector()` function). But this is the best I can currently do. 圖片參考：http://imgcld.yimg.com/8/n/ab00135862/o/161006040753513872668990.jpg
 
首先請先 複習下列公式
 
設扇形的中心角θ弳，半徑為r，弧長為s，面積為a，則
s=rθ；a= r2θ= rs
sol: 設: ∠aob=θ 弳 (弧度) od=x
(x+2.5) θ =6 ……………………………..(1)
求黃色部分面積= (x+5)2 θ - x2θ
= θ ( x2+10x+25-x2 )
= θ (10x+25)
=5θ( x + 2.5)=30



圖片參考：http://imgcld.yimg.com/8/n/ab00135862/o/161006040753513872669011.jpg
 

圖片參考：http://imgcld.yimg.com/8/n/ab00135862/o/161006040753513872669012.jpg
 

圖片參考：http://imgcld.yimg.com/8/n/ab00135862/o/161006040753513872669033.jpg
 



 2010-06-04 23:25:06 補充：
y= |cosx|

恕不再多畫 將以文字說明

1. 當cosx >0 時 y=cosx
2. 當cosx <0 時 y = -cosx

 2010-06-04 23:26:21 補充：
注意

y=3sin2(x-π)+2

之 a , b 步驟為同一圖形

 2010-06-05 13:06:49 補充：
奇怪 1/2 通通不見了

更正

s=rθ；a=0.5 r2θ=0.5 rs

求黃色部分面積=0.5(x+5)2 θ - 0.5x2 θ
=0.5θ ( x2+10x+25-x2 )
=θ (10x+25)
=5θ( x + 2.5)=30

p.s. x2 即為 x平方

 2010-08-28 11:35:07 補充：
staff
crusty
dough
yeast
ferment
form
trap
raise
rise
flat
slab
acorn
slope
pound
protein
wheat
rye
grind
coarse
gluten
elastic
expand
carbon
dioxide
technique
wear away
grit
swiss
crush
steel
roller
rid of given the boundaries of the area to be found are,• the curve • the x-axis• x = 0 (y-axis)• x = 4 (a line parallel toy-axis)as per the given boundaries,• the curve,is a curve with vertex at .• x=2 is parallel toy-axis at 2 units away from the y-axis.• x=0 is the y-axis.• the four boundaries of the region to be found are,•point a, where the curve y2 = 6x + 4 and x=0 meet.•point b, where the curve y2 = 6x + 4 and x=2 meet.•point c, where the x-axis and x=2 meet i.e. c(2,0).•point o, or the origin i.e. o(0,0).area of the required region = area of oabc.[using the formula ]the area of the required region sin(α β) = sinαcosβ cosαsinβ 
sin(α-β) = sinαcosβ - cosαsinβ


cos(α β) = cosαcosβ - sinαsinβ
cos(α-β) = cosαcosβ sinαsinβ


tan(α β) = tanα tanβ / 1-tanα tanβ
tan(α-β) = tanα-tanβ / 1 tanα tanβ


sin2θ = 2sinθcosθ = 2tanθ /1 tanθtanθ


cos2θ = cos平方θ−sin平方θ = 2cos平方θ−1 = 1−2sin平方θ


△abc=海龍公式 √s(s-a)(s-b)(s-c) 
[s=a b c/2 ，就是周長/2 ]



△abc=1/2 ａ.b*sinc = axbxc / 4r = rxs 

 [r=外接圓半徑，r=內接圓半徑]




應該是這樣吧!希望對你有幫助。