## swissgirl 2 years ago Parthhhhh

1. ParthKohli

Yeah!

2. swissgirl
3. swissgirl

sorry my comp keeps crashing i have no clue y

4. swissgirl

ok so i need help with ALG023.MA

5. swissgirl

ok so i opened that and then evaluated the notebook

6. ParthKohli

Yes, sure. They all load for me.

7. swissgirl

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. swissgirl

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

12. swissgirl

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

13. swissgirl

Tolerance is 10^-5

14. swissgirl

and number of iterations is lets say 45

15. ParthKohli

Screen or text file?

16. swissgirl

screen

17. swissgirl

and then u want 2

18. ParthKohli

All approximation, right?

19. swissgirl

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. swissgirl

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. swissgirl

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. swissgirl

maybe we r entering it incorrectly

29. ParthKohli

Yeah, maybe. =\

30. swissgirl

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. swissgirl

ohh maybe

34. ParthKohli

@eliassaab

35. ParthKohli

Or you sure that's the number of iterations?

36. swissgirl

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. swissgirl

ok good idea

39. ParthKohli