Christopher2222

MaplePrimes Activity


These are replies submitted by Christopher2222

Well then, can we realize a more efficient way to complete a similar task with Maple?

Again thanks for pointing out the extra leap year conditions.

I have modified the 3 lines from
if x mod 4 = 0 then ...
to
if (x mod 100<>0 and x mod 400<>0 and x mod 4 =0) or (x mod 100=0 and x mod 400 = 0) then ...

The original post has been edited and I have replaced the old download link with the updated version.

@acer I missed the fact that years divisible by 100 are not leap years unless they are also divisible by 400.

I remember in the beginning that Posts were created for discussion which is why I suppose any succeeding posts (answers) are considered comments and not affected by the rules set up by the admin for answers being ranked by votes.  But sometimes within the answers of a question there is conversation ... actually most answers sometimes take into account the information that has already been read which may or may not have been ordered by the vote ranking. 

The best way I believe would be to leave the posts/answers ordered as they were posted.  It's easy enough just to scan and see the highest voted answer, but it's more difficult to judge where that answer would have been before it was moved.

I think when someone posts and gets upthumb votes, it is understood why they are there (it's cool, very useful, quite interesting or just a general agreement) however they don't expect to get downvoted and I'm pretty sure don't really understand why they do.  It's a similar thing on an exam or test paper, if you get a checkmark (no explanation needed), but if your answer was wrong I think you would at least want to know why?  It's not an exact comparison, but the similarity exists.  I think that speaks for many things in society, when someone declines something we are more likely to ask for a reason why and when we accept an offer, there is no reason to wonder. 

@acer  There must be a setting I cannot find. 

For me in std maple 14 the assignment statements are not shown and I can't find the option to change that.  In classic, the assignments are shown so I am sure it must be one of my settings that made me believe something was fixed. 

@acer  There must be a setting I cannot find. 

For me in std maple 14 the assignment statements are not shown and I can't find the option to change that.  In classic, the assignments are shown so I am sure it must be one of my settings that made me believe something was fixed. 

@hirnyk thanks for that post. 

As the user did not specify his exact intentions for requiring 2 decimal places, I believe I submitted a valid response.  I presented a way to achieve that result.  Unfortunately to my dismay and the dissapproval (thumbs down) of others, their perception of what the user was asking did not fit with my answer. 

I merely came to one conlcusion and shared my result.  The title of my answer was "another way" and was intended to represent an alternative and not to invoke any wrongness in doing so.  I suppose, I should have added a few words of explanation on my part which may have warded off a thumb down response. 

Also as to realize wether the thumb down vote was a valid response or just a slip of the button, then so be it.  However, from now on, I should regard any such down voting as just an accidental slip of the mouse button.

@hirnyk thanks for that post. 

As the user did not specify his exact intentions for requiring 2 decimal places, I believe I submitted a valid response.  I presented a way to achieve that result.  Unfortunately to my dismay and the dissapproval (thumbs down) of others, their perception of what the user was asking did not fit with my answer. 

I merely came to one conlcusion and shared my result.  The title of my answer was "another way" and was intended to represent an alternative and not to invoke any wrongness in doing so.  I suppose, I should have added a few words of explanation on my part which may have warded off a thumb down response. 

Also as to realize wether the thumb down vote was a valid response or just a slip of the button, then so be it.  However, from now on, I should regard any such down voting as just an accidental slip of the mouse button.

Please let the culprit explain and reveal himself.

Please let the culprit explain and reveal himself.

Many thanks for clearing that up,

So in another example case of a list containing different names

a:=[chris,jack,john,jason,fred,alex]:

for i in a do
  assign(i,5):
end do:

Or as a seq:

seq(assign(i, 5), i = a)

Again thanks!

Many thanks for clearing that up,

So in another example case of a list containing different names

a:=[chris,jack,john,jason,fred,alex]:

for i in a do
  assign(i,5):
end do:

Or as a seq:

seq(assign(i, 5), i = a)

Again thanks!

I thought it could have been a bug ... but the output assignment i:= does not appear in standard Maple 14 for me, so I thought it was fixed in 14 which is why I thought it was a double output bug prior to 14. 

The = instead of := was a minor typo on my part.  Hopefully I am not all that factually wrong.  

 

I thought it could have been a bug ... but the output assignment i:= does not appear in standard Maple 14 for me, so I thought it was fixed in 14 which is why I thought it was a double output bug prior to 14. 

The = instead of := was a minor typo on my part.  Hopefully I am not all that factually wrong.  

 

1 - Ah, forgot about print forcing outputs inside colons

2 - Okay, nuff said on the subject matter then.  Although I do rather like the idea that a bug problem can still be fixed after the new version gets retitled to an old version.  It brings the idea of completeness to a product.

 

First 125 126 127 128 129 130 131 Last Page 127 of 162