Example #1
0
func ExamplePhaseAngle2() {
	// Example 41.a, p. 284
	i := illum.PhaseAngle2(26.10588*math.Pi/180, -2.62102*math.Pi/180, .724604,
		88.35704*math.Pi/180, .983824, .910947)
	fmt.Printf("%.5f\n", math.Cos(i))
	// Output:
	// 0.29312
}
Example #2
0
func ExamplePhaseAngle2() {
	// Example 41.a, p. 284
	i := illum.PhaseAngle2(
		unit.AngleFromDeg(26.10588),
		unit.AngleFromDeg(-2.62102),
		.724604,
		unit.AngleFromDeg(88.35704),
		.983824, .910947)
	fmt.Printf("%.5f\n", i.Cos())
	// Output:
	// 0.29312
}