|
Post by ddfskip on Jan 9, 2023 8:09:44 GMT -5
tsh73.......yes right condition. Jubilee is every 50th after counting 49. It is also the 1st year of the next cycle so as to maintain the pattern. Also Sabbaths and Jubilees are already on a particular pattern from the beginning of entering the promised land. example Sabbath and Jubilee counting started in the year 2548- 2549 (1st year of cycles). So YOC 2597-2598 was the 1st jubilee celebrated by the Israelites. In terms of BC it would have been 1592-1591 BC as Sabbath and Jubilee years ran from Tishri to Tishri (Jewish) or about Sept(Oct) to Sept (Oct).
|
|
|
Post by Rod on Jan 9, 2023 10:30:44 GMT -5
Understanding the problem is perhaps the first step. So instead of code just tell us about the task as simply as you can. From my quick read it appears we are actually talking about a 49 year cycle 7*7years and while the 50th year is a jubilee the 7*7 cycle is off and running at the 49 year point. So 10 jubilees in 490 years not 500 years? So count mod 49 =0 = Start of jubilee?
|
|
|
Post by ddfskip on Jan 9, 2023 11:38:30 GMT -5
Thanks Rod: I posted this above
Ok so here is the what I am trying to Solve. 2555, 2556, etc are (year of the world) dates. I have a 450 year period which is a floating period because of 2 unknowns that surround it. What I do know is the total of the 2 unknowns we will call E and S. I only want to get Sabbaths and Jubilees in certain years with gaps in-between the years in question. The first period is actually 8 years not 21.....as in the program I wrote above. After the 8 year period there is a period of 40 gap years that I dont need Sabbath and Jubilee info for because I am only counting certain period in the 450 years. After the 40 year gap, I will have another Period of 18 years that I need Sabbath and Jubilee info for.......then a 80 year gap . Then another 20 year period of Sabbath and Jubilee years. Then another gap....... and so on until I come to the end of the 450 year period in question. So I am starting at year 2555........and need to float the 450 year period each year forward for 34 years which is the total of E + S. I know I really only need 7 consecutive years for the Sabbath years since then it would repeat. But unfortunately, it gets complicated with also having to figure in Jubilees. That is why I am doing all 34 years because as I move through the years the number of Sabbaths and Jubilee obviously changes. Ultimately, I am looking for a combination count of 22 (Sabbath+Jubilees) in any of the 34 years. So once I go through all the periods in question of the 450 years starting with year 2556, then I need to increase that by 1 until 34 periods are complete and I get the total of Sabbaths and Jubilees in each year from 2556 to 2590. There is a total of 8 blocks of dates finding Sabbath and Jubilee years with 7 gap periods. So somehow I need to loop each year through the 8 periods in question. I hope this is understandable and any help would be appreciated. let me know if you have questions on this thanks ddf. that is as simple as I can make it
I also posted this tsh73.......yes right condition. Jubilee is every 50th after counting 49. It is also the 1st year of the next cycle so as to maintain the pattern. Also Sabbaths and Jubilees are already on a particular pattern from the beginning of entering the promised land. example Sabbath and Jubilee counting started in the year 2548- 2549 (1st year of cycles). So YOC 2597-2598 was the 1st jubilee celebrated by the Israelites. In terms of BC it would have been 1592-1591 BC as Sabbath and Jubilee years ran from Tishri to Tishri (Jewish) or about Sept(Oct) to Sept (Oct).
So code is proper and working............the only problem I have is looping through all 34 years since the count grows in each pass. so it needs to reset somehow to increase by 1 year until 34 years are reached. I dont know if that is possible. I went ahead and ran this 34 times changing the count by 1 each run. So I do have the answers but I would be interested if this could be done without doing that thanks to each of you for your time and help
|
|
|
Post by Rod on Jan 9, 2023 15:06:52 GMT -5
mmm..... clear as mud. If we cannot get a clear definition of the problem alternative solutions will be hard to find. But since you have it working you might explore alternative methods yourself simply by tweaking what you understand now. Answering the two questions I posed would help us all understand better. 49 year cycle? 50 jubilees in 490 years? And E and S need a little more explanation. But if you have the solution you may be content.
|
|
|
Post by ddfskip on Jan 9, 2023 15:23:14 GMT -5
Thanks Rod. I dont know if I can make it any clearer. E and S were just side notes to explain that this 450 year period could float over 34 years. Again this program works fine accept for looping through the 34 years because of the accumulation total in (count). It needs to be reset somehow without resetting on every loop. Again dont know if that is possible..........you guys are the experts. I do, as you say, have my answers.........just curious at this point if someone who knows the Basic language well can actually come up with a solution...............again, thanks for your time
I think it would be a great homework assignment
|
|