Scot Gould

Scot Gould

517 Reputation

14 Badges

10 years, 152 days
Upland, California, United States
Dr. Scot Gould is a professor of physics in the W.M. Keck Science Department of Claremont McKenna, Pitzer, Scripps colleges - members of The Claremont Colleges in California. He was involved in the early development of the atomic force microscope. His research has included numerous studies and experiments making us of scanning probe microscopes, particularly those which involved natural fibers such as spider silk. More recently, he was involved in developing and sustaining AISS, a full-year multi-unit non-traditional interdisciplinary undergraduate science education course which integrated topics from biology, chemistry, physics, mathematics, and computer science. His current interest is integrating computational topics into the physics curriculum. He teaches the use of the computer algebraic and numerical system Maple to assist students in modeling and visualizing physical, and biological, systems. His Dirac-notation based quantum mechanics course is taught solely through Maple. An avid baseball fan, during his spare time, Dr. Gould is traveling, particularly to locations where he can bicycle on smooth, traffic-free roads, visit beaches and/or mountains, and enjoy good food and drink.

MaplePrimes Activity


These are replies submitted by Scot Gould

My guess is the problem with the names used for the rows and columns in M, is that they confuse Maple. The code is not sure what you say when you write: M[1, a].  Do you mean '1' as the first row or '1' as the row label? I read it as row 1, with the column 'a'. Hence the result of 0 makes sense.

 

In my experience, it is best to name the rows and columns as strings.

M := DataFrame(`<,>`(`<|>`(0, 0, 0), `<|>`(0, 1, a), `<|>`(0, a, 1)), rows = ["0", "1", "a"], columns = ["0", "1", "a"])

module DataFrame () description "two-dimensional rich data container"; local columns, rows, data, binder; option object(BaseDataObject); end module

(1)

M["1", "a"]

a

(2)

 

It may not be as convenient for you, but there is less likely a chance of confusion.


Download DataFrames_question.mw

@PaulNewton

Given what you wrote above, the only other option that I can think of is the stop button on the menu bar.

@Carl Love 

Thank you for your highly informative and well-written post. As someone attempts to teach basic Maple usage to students, I will continue to refer to your work here. The Programming Manual heavily emphasizes the word "name" rather than "symbol". The word "symbol" appears precisely only twice in chapter 1 and once in chapter 2.

Decades ago when I first became aware of Maple, there was heavy use of the catenated variables. But then it fell into disfavor. Given that they are always global, I understand why now. I don't remember reading this information in the Programming Manual. Nor do I understand why the authors of Maple would adopt this policy. Regardless, major upvote.

Note, I tried to email you directly, but Google rejected my academic address. 

@zenterix 

Sometimes I have similar goals as you, hence why I responded. If I understand what you are describing as an outcome, wouldn't the context panel satisfy your needs? See example.

 

(Matrix(2, 2, {(1, 1) = 1, (1, 2) = 2, (2, 1) = 2, (2, 2) = 4})).(Matrix(2, 2, {(1, 1) = 5, (1, 2) = 6, (2, 1) = 7, (2, 2) = 8})) = Matrix(%id = 36893490695607929420)NULL

NULL

Download Context_Panel.mw

Are you talking about non-executable math?  For example, there is the executable math:

 

     `<,>`(1, 2, 3, 4).`<,>`(6, 7, 8, 9)

80

(1)

And here is the non-excutable math:

 

     `<,>`(1, 2, 3, 4).`<,>`(6, 7, 8, 9)

 

When I hit the !!! button, only the executable math is executed. That is how I wrote all my documents that require math statements.

 

   `<,>`(`<|>`(I, 0^T), `<|>`(F^T, 0^T)).`<,>`(`<|>`(I, F), `<|>`(0, 0)) 

 

To switch between text, math and non-executable, hit F5.  Also look at: 

https://www.maplesoft.com/support/help/Maple/view.aspx?path=worksheet/documenting/2DMathDetails

Download Non_executable_math.mw

Both systems have their benefits. However, there is one fomat that is popular with those who read Maple which I interpret as the worksheet-document hybrid.

Write everything in a worksheet mode.  Then when ready to share with others, either hit F9 or deselect the option under View --> Show/Hide Contents --> Execution Group Boundaries

Without the execution and text group boundaries, the "document" has much of the appearance of a document but still with the structure of a worksheet.  

A small request. Any chance you folks can add information about Physics:-Version() to help, and to make reference to it in the Physics Overview section?

@jschatzman Refering to A), like many other computing languages, the Maple language is case sensitive. Hence pi does not equal Pi. 

Pi is the defined constant. pi is a variable. (Another example is the variable "e" and "e" which equals exp(-1).) However, when Maple displays either, it appears as the Greek letter, i.e, it appear the same. (There has been requests to have the defined constant displayed in a different color. However, since I suspect so few people use the variable pi, more folks would be annoyed by the change in color.) 

If you use Common Symbols palette, Pi is distinct from the pi character in Greek palette.  

For the defined constants, you can go to this webpage:  https://www.maplesoft.com/support/help/errors/view.aspx?path=initialconstants

@Rouben Rostamian  Again, with this newer worksheet, no black image appears in Windows 10. 

The only reason I mention the graphics board / video setup is because I have an even weirder problem. When I have Maple open and I turn off the primary monitor (Dell 34"), Maple quits. No other app / program quits. This occurs both in 2021 and 2022.  I'm not even sure how to report it as a bug. 

..but when I open the worksheet, the tubes are red and red. I'm using exactly the same version of Maple 2022.1 that you are. 

Re-executing the worksheet also produces red and red. 

I don't know what graphics card my Dell (Windows 10) laptop is using. 

@TechnicalSupport A quick check using Maple 2022, the copy of a 3d plot as an image does properly paste into a Word document properly.  Thanks for the fix.

@Carl Love  I was not aware of this format.  It is more readable than my Matrix call.

But to for those who may use your solution precisely, the number-sign/hashtag at the end of the last line is not necessary. 

I agree, for those who like quantitative puzzles, Nonograms are delightful to solve.  They are a combination of art, mathematics and logic. This little app in Maple Learn is fun for creating one’s own Nonogram. 

However, it leads to a question. Given the fact one can construct a puzzle for which there are multiple solutions*, is there a simple algorithm which can determine if a puzzle possesses only one solution?

* Example: 2 x 2 grid with the top header: 1, 1 and the left header: 1, 1. 

@Preben Alsholm  I was looking forward to seeing the results for the function I call to convince undergraduates that they spent too much time memorizing techniques to solve integrals when they could have called:  Student:-Calculus1:-Tutor() .

@TechnicalSupport  One of my students reported the same problem when using 2021.2.   As I mentioned, they chose to unstall Maple, and re-install, sticking with 2021.1 version. 

1 2 3 4 5 6 7 Last Page 2 of 15