- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok I have a problem like this.When I put function as a separate programe works fine(I have checked the results),when I put it as function in my big program,I get bad results,makes later numerical computaions senseless.I am attaching both versions.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These programs look too different to make meaningful comparison, and they print out different amounts of data. I suggest you run each of them through the debugger and see where differences in values start to appear.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>When I put function as a separate programe works fine(I have checked the
results),when I put it as function in my big program,I get bad results
Such things do happen. It is the programmer's lot to take such events in stride, and hunt down and zap the offending source code. Some even find such activity enjoyable.
You may have better luck getting help here if you formulate concrete questions based on a description of work already done, than by simply depositing buggy code here.
Such things do happen. It is the programmer's lot to take such events in stride, and hunt down and zap the offending source code. Some even find such activity enjoyable.
You may have better luck getting help here if you formulate concrete questions based on a description of work already done, than by simply depositing buggy code here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have solved this with debugger.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page