leafgreen

40 Reputation

5 Badges

5 years, 246 days

MaplePrimes Activity


These are replies submitted by leafgreen

@bmartin Thank you! It is the simple things!

@vv Thank you!

@acer I'm using Maple 16 with 2D Math input.

 

Btw, I more so meant silly syntax insofar as subtleties like _ vs. __ are tripping hazards that those newer to Maple will likely fall into despite conceptually proper code.

@Kitonum OK so it does not like subscripts because it thinks it's an index? Sigh.

 

Thank you!

@tomleslie I was trying to go off of what I knew from a coin toss problem I worked on. I did think it was weird.

Thank you! That makes much more sense.

@Rouben Rostamian  That's what I was thinking, too, but that is the equation I was explicitly asked to use! I might ask about that in case it's a typo.

 

Thanks for all the help, though! I really appreciate it.

@Rouben Rostamian  Sigh, yes. You are right about that. I think I fixed it. Because when I plot it the paths of the velocities no longer look constant. But I'm struggling to animate it, which would help to see if it makes sense.

 

failanimation.mw

@Rouben Rostamian  Oh! I see what you mean. I changed it from x11 to x1 (because my point was to create a new x1 to use in the formula) and it worked. Thanks!

@Rouben Rostamian  You're right! The formula in my sheet is apparently for just the force in the x-direction.

@Kitonum Thank you!

@Kitonum Ah jeez, I figured it was something that simple. Something I will hopefully get used to as I use Maple more. Thank you!

@Kitonum Thank you!

But just curious about the syntax of the first argument, [2, 4$4, 6$5]. Does the $ indicate the relative weight? So as long as the relative weights add up to 10 it's fine? Just wondering so I know how to make these histograms for future purposes.

@Kitonum So that code definitely worked. But I can't seem to figure out how to reuse that code for anything else besides something that is 50/50 probability. I tried the following:

 

Histogram([[2, .1], [4, .4], [6, .5]], discrete = true, thickness = 25, tickmarks = [[2 = `ℏ`, 4 = 0*`ℏ`, 6 = 2*`ℏ`], [.1, .4, .5]], view = [1 .. 7, 0 .. .55], axes = normal, axesfont = [times, roman, 14], color = cyan, title = "Problem 7(b)")

But I get the error, "Error, (in Statistics:-Histogram) expected 1-dimensional Array, received: [[2, .1], [4, .4], [6, .5]]".

 

How can I input specific values for each discrete piece of data in a histogram?

@vv 

(1) I assume that I cannot know everything, which is why I asked the question.

(2) My professor insists there is an answer to this question. So I figured I must have been doing something wrong, as per (1).

Perhaps I just misinterpreted what my professor said. That's also possible. But again, that leads me to (1). I'm glad you know that most such functions can't represented that way, and that this function falls into that category. But I didn't know, which is why I asked.

I don't know about anyone else, but your worksheet crashes my Maple. So. Try posting executable code instead.

1 2 Page 1 of 2