Carl Love

Carl Love

28050 Reputation

25 Badges

12 years, 336 days
Himself
Wayland, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity


These are replies submitted by Carl Love

@acer Ouch, the syntax of that undocumented command is a nightmare. Hopefully that gets completely redone before it's ready for "prime time". Consistency demands at the very least that it be convert, not eval, and that the arguments be interchanged.

@Rouben Rostamian  Thank you, and a Vote Up; that's quite informative. I wasn't previously aware of the importance of the distinction between the magnitudes and their ratios.

@SaeedAF7 The question that I just posed to Rouben in a Reply above I also pose to you. Although I don't have MapleSim, just seeing the animation here would sate my curiosity.

@Rouben Rostamian  Just curiousity here: I know that if the cylinders were hollow (and, for simplicity, let's say uncapped), their moments of inertia would be different. How would this affect the plot? For simplicity, let's say that the cylinders are made from sheets of a dense metal of neglible thickness.

@Stretto You cannot change kernelopts(homedir). You may be confusing that with currentdir(...), which can be readily changed with 

currentdir("whatever"):

If you use colons to suppress the output of commands in the initialization file, then their output will not show in your worksheet.

@Stretto The underscore character is not an operator---it's treated like a letter of the alphabet---and it can't be overloaded. But you can define an operator &_, and you wouldn't even need to overload it because it has no predefined meaning:

`&_`:= q:

Now x &_ n returns q(x,n). Note that a space is needed after the underscore; the space before the & is optional.

@tomleslie Your solutions happens to satisfy the 0..1 constraints, but it seems like just luck that it does so.

@shkarah I watched parts of the video. Parts of it move too fast to understand, and parts of it move too slow to bear watching. Anyway, I agree that you've been led astray by it, and I don't know why it works in the video.  Is it possible to get the worksheet from the video's maker?

I concur with Acer and Christian. After the value of f(x) has been assigned, any references to f[i] are suspect and risky. Sometimes it works, but is it worth the effort to debug if it doesn't? Just use another name instead. 

I haven't investigated this case; I just formed an opinion from reading your code.

@permanoon123 Still, it's not possible to get an answer without knowing the function f.

@student_md 

Firstly, you should post your worksheet inline so that I can read it in any browser, such as on my phone.

Secondly, getting decimal results is premature at this point. Let's first make sure that the symbolic results are correct. 

Thirdly, the two iquo commands that you mentioned are equal: iquo is the integer quotient, and is precisely the discarded remainder.

@acer This is just curiousity because I'm unlikely to use labels, but can they only be used with explicitly displayed output? Nonetheless, I think that the answer to this will be of interest to the general reader. 

@syhue Ordinary characters in strings---commonly called bytes---occupy 8 bits. The command convert(P, 'bytes'), where is a string, returns a list of numbers from 0 to 255, one number for each character. Thus, this list can be thought of as a number in base-256 = 2^8

The operation m &^ e mod n takes essentially the same amount of time regardless of whether is large or small; thus, for efficiency, we want each number m that is encrypted to represent as many message characters as possible (which I called a "chunk" of characters). On the other hand, in order to guarantee uniqueness of represention, in other words to guarantee that
((m &^ e) &^ d mod n) = m for all m, it's necessary that m < n. What I called bch is 1 more than the maximum m that I allow. Since it's inconvenient to split individual characters, I make bch a power of 256. So 
bch = 256^"number of characters that can fit". The number of characters that can fit is 
​​​​​floor("bits in n" / "bits per character"). In efficient Maple syntax, that's 
iquo(ilog2(n), ilog2(bby)).

Now, hopefully you can see that this bch is the numeric base of the list M. The Maple command to convert a list representing a number in base A to a list representing the number in base is
convert(L, 'base', A, B). (It's possible to make this step more efficient by making use of the fact that is a power of A.)

Do you understand?

I think that you should vote up my Answers by clicking on the thumb icon.

 

@Mac Dude You misunderstand my point entirely. I was commenting on your continuing the OP's use of f^4; I was not commenting on your use of f@@4 without arguments. Indeed, my Reply was added before you had edited your Reply to use @@ at all. In other words, I was the first person in this thread to make any reference to the @@  operator, and I did so merely to make readers aware of its existence as the proper Maple operator to use for what was up until my intervention being refered to as f^4.

I have no problem with using f@@4 without arguments to refer to the fourth-order self composition. And if you do include arguments, it must be (f@@4)(x,y), not f@@4(x,y).

Please post an example of the phenomenon that you describe, either as plaintext or a Maple worksheet.

First 243 244 245 246 247 248 249 Last Page 245 of 709