## anonymous 3 years ago Parthhhhh

1. ParthKohli

Yeah!

2. anonymous
3. anonymous

sorry my comp keeps crashing i have no clue y

4. anonymous

ok so i need help with ALG023.MA

5. anonymous

ok so i opened that and then evaluated the notebook

6. ParthKohli

Yes, sure. They all load for me.

7. anonymous

but when i type in the function then it just goes haywire

8. ParthKohli

Wait a sec

9. ParthKohli

Works for me well

10. ParthKohli

You must type it, then Shift+Enter.

11. anonymous

ill give u the function $$\frac{1} {2} + \frac{x^2} {4} -xSin[x]-\frac{1} {2} Cos[2x]$$

12. anonymous

ok so this is the function and my initial approximation is 1.570796327

13. anonymous

Tolerance is 10^-5

14. anonymous

and number of iterations is lets say 45

15. ParthKohli

Screen or text file?

16. anonymous

screen

17. anonymous

and then u want 2

18. ParthKohli

All approximation, right?

19. anonymous

yup

20. ParthKohli

Yeah, it does go haywire. I have a reason for it by the way.

21. ParthKohli

That's a whole lot number of iterations!

22. anonymous

suppossed to be only 24 iterrations

23. ParthKohli

OK... let's see now

24. ParthKohli

I guess that it was too big for the screen, so I saved it in a text file.

25. anonymous

ohhh maybe

26. ParthKohli

Oh, what the hell? That's a big 18 MB. lol

27. ParthKohli

You can try to get the output in a text file... maybe.

28. anonymous

maybe we r entering it incorrectly

29. ParthKohli

Yeah, maybe. =\

30. anonymous

Who else knows mathematica?

31. ParthKohli

@robtobey

32. ParthKohli

I think that the output is too big for the screen, and therefore it crashes.

33. anonymous

ohh maybe

34. ParthKohli

@eliassaab

35. ParthKohli

Or you sure that's the number of iterations?

36. anonymous

maybe we shld do the tolerance level to 10^-3

37. ParthKohli

Oh, this time, let's try to get just the answer, not the linear approximations.

38. anonymous

ok good idea

39. ParthKohli