Talk:Diophantine linear system solving

From Rosetta Code
Revision as of 12:51, 26 February 2022 by rosettacode>Plinio

Hello everyone.

I wrote a standard C port of the FreeBasic program. It's a pretty much verbatim rewriting. All the tests give the same exact result. I'm willing to put it in here but:

1) I don't know how to proceed. Do I just have to edit the "Diophantine linear system solving" page? Is there a correct way to do that?

2) I read the talk. This is a quote from --Pete Lomax (talk) 15:01, 26 December 2021 (UTC): "From my point of view I'd like to know more about how this might be used/prove useful in some future (non-rc) project". I've actually done the porting for that exact reason. I had a problem, a really important one at that. I wanted to solve minesweeper. I needed a way to find ALL possible combinations of bombs, given the constraints of the minefield in a particular situation. Sadly enough this method gives only one solution. One valid solution, but not necessarily the correct one. So mine is the question of the lazy person that I am (read "math impaired"): where do I need to look in this procedure to find something to change in order to being able to obtain all the possible solutions, not just one of the simplest?

I hope it makes some sense (my inglysch sucks).

ps: again, how do i insert the code? who do i need to send i to?

pps: never mind point 1. i think i got it. let me know if you try it and there is any problem. point 2 still applies :)

Re point 2: Unfortunately I suspect you'd be better off attacking the minesweeper problem a completely different way. --Pete Lomax (talk) 12:03, 26 February 2022 (UTC)

OOps: edit this page to see how the following is to be entered :-) -- fixed --Pete Lomax (talk) 11:44, 26 February 2022 (UTC)

ad 1 Edit the task and add these lines in the proper place (PL: as they look, not as I've just mangled them)

=={{header|C}}==
<lang c>your program</lang>
{{out}}
<pre>your output</pre>

Then save the task with Summary 'added C' ad 2 Under tasks open it --Walter Pachl 14:04, 25 February 2022 (UTC)

Thank you very much. I've updated the page.

Hi Plinio and welcome. You're doing fine, don't worry. Two more little things: 1) we keep entries in alphabetical order so you need to move your C entry above FreeBasic, and 2) on talk pages please sign your comments with two dashes and four tilde, ie --~~~~ (without the nowiki bits), which will be replaced with your username and the time and date. --Pete Lomax (talk) 04:05, 26 February 2022 (UTC)
I added a sentence here and moved the C-code in the task. All disappeared! did someone dislike what I did? --Walter Pachl 10:01, 26 February 2022 (UTC)
Not me! Are you sure you didn't dream it? Nothing in the history. Yeah that would be weird. --Pete Lomax (talk) 11:44, 26 February 2022 (UTC)
Thanks for the pointers. I will try not to mess things up too badly. About the what Walter says, I don't think it was me; I'm pretty sure I didn't delete/change anything. --Plinio (talk) 12:51, 26 February 2022 (UTC)