Asgnt 4 - HW Chapter 3 add'l 2010March23

Asgnt 4 - HW Chapter 3 add'l 2010March23 - Assignment 4:...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
` yang@ic.sunysb.edu Note: recall that Miracle C does not handle long integers, so any program using integers must employ numbers less than 32767 in magnitude. Assignment 4: e-mail programs and output to: davidgdw@gmail.com due Tues 3/23/2010 PAGE 1 Do all programs and problems shown. Omit problem 4.13 . hand in other material in class Tues 3/23 Alternatively, you may submit the solutions to these other problems as well via the email address above
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
PAGE 2 omit
Background image of page 2
3-dimensional fixed-point programming problem PAGE 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Write a C program to solve the following simultaneous nonlinear equations using the fixed-point method. Use an initial guess to the solution of (x,y,z) = (2,2,2). You may model your program after and use any appropriate code from the one- dimensional case discussed in class. x = g 1 (x,y,z) = –0.02x 2 0.02y 2 0.02z 2 + 4 y = g 2 (x,y,z) = –0.05x 2 0.05z 2 + 2.5 z = g 3 (x,y,z) = 0.025x 2 + 0.025y 2 1.875 Your program should print to the screen as well as to a disk file, just as in the one- dimensional case. A correctly functioning program will have the following output for the first two
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Asgnt 4 - HW Chapter 3 add'l 2010March23 - Assignment 4:...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online