C_R

3427 Reputation

21 Badges

5 years, 325 days

MaplePrimes Activity


These are replies submitted by C_R

Could you share details how you have done it?

@epostma 

Carl's solution (with an initial simplification to SI units) worked and I am fine with it.
What didn't work was the solution from tomleslie 9664 . For that one I prepared the simplified example which did not work either with the construct convert, simplify~(U.....
he proposed.
It's becomming now more a question about Maple syntax. I don't want to waist your time byond my initial request.

Thank you all!

 

 

@Carl Love 

Actually, I tried to update my worksheet with the nested commands as proposed, and it did not work.

If I interpret the execution of convert,unit_free (as I have used it in my original worksheet) correctly, it works on the operands of a sum. Wherever an operand is a product of a Unit and "something else" it strips of the unit. It does not seem to work on functions. Here is another example

Operand of my example

Unit(Unit('mm'))*sin(Unit(1/'s')*t)

Units:-Unit(mm)*sin(Units:-Unit(1/s)*t)

(1)

As I used the commands

simplify(Units:-Unit(mm)*sin(Units:-Unit(1/s)*t)); convert(%, unit_free)

(1/1000)*sin(Units:-Unit(1/s)*t)

(2)

As proposed

map(convert, `~`[simplify](Units:-Unit(mm)*sin(Units:-Unit(1/s)*t)), unit_free)

(1/1000)*sin(Units:-Unit(1/s)*t)

(3)

NULL

convert(simplify(Units[Unit](mm)*sin(Units[Unit](1/s)*t)), unit_free);

(1/1000)*sin(Units:-Unit(1/s)*t)

(4)

Or

map(convert, simplify~(Units[Unit](mm)*sin(Units[Unit](1/s)*t)), unit_free);

(1/1000)*sin(Units:-Unit(1/s)*t)

(5)

NULL

Download convert_unit_free.mw

Have I overlooked something?

@Carl Love 

Very elegant and new to me! I am wondering what is the help page that I have overlooked?
Thank you!

@epostma 

This will save time and prevent us from scaling errors that can still happen with the work arounds.

To make it perfect (and I am repeating myself here), there should be a plot option to set plot label units and rescale accordingly. In this instance I would have preferred everything in mm.

@tomleslie

Thank you!

I wouldn't have thought of that. I always thought that with such a construct, simplify is executed first and then convert.
Is there an explanation what is different in a nested command compared to two separate input lines?

 

I have not observed it recently. It vanished after system restart. I am not using style management  often so I can’t tell whether this persists.

My guess is that it is related to a change in display resolution which happens in my case in two scenarios:

  • 4k on a 32’’ Monitor to 2k on internal laptop monitor and back
  • Switching between two large Monitors, one at 2k the other at 4k

My overall impression is that such issues have become less frequent with newer versions of windows.

Thank you for following up

Right click in the left pane would definitely save time without loosing focus. Otherwise: In a help page without appropriate cross-reference or hyperlink on the “new topic of interest” in the left pane, it would be required to somehow clone the current help page before opening the “new topic of interest” in the left pane.

Since this post is about improving the help system: I would welcome an option that highlights the search query in a selected result in the left pane. Something like “crtl+f and highlight all” in Firefox. Right now, in Maples crtl+f, the search query has to be entered again in the search field and only one search query is highlighted at the time. Personally, I would have it highlight all enabled by default any without using crtl+f.

@Rouben Rostamian

This would be very interesting. Reproducing mode coupling in Maple (analytically) could give other insights than MapleSim can provide. Swapping frequency for example: On which parameters does it depend?

You can extract parameters from the screen shot bellow. In the attached worksheet are details how I estimated the length of the vertical post. All cross-sections are circular and of the same size. At the start of the simulation the vertical post is slightly inclined by the parameter phi (i.e. the asymmetry in boundary conditions). Similar results are obtained if the arms are attached with a slight offset dx (i.e. structural asymmetry).

It might be easier for you to bend the structure in horizonal direction at the start of the simulation (asymmetry in initial conditions which I could not make work). There is a dimension less parameter q that I use to fine tune the length. Due to the large deflections in my simulation the length of the vertical post had to be shortened by 10%. Mode coupling is only pronounced within 5% tuning range as you can see form the plots bellow (amplitudes in meter, [1]: x-direction, [2]: y-direction).

I observed that the horizontal amplitude becomes largest when the leaf shaped amplitude envelope is symmetric. Detuning transforms it into a croissant (third screen shot).

Good luck!

Parameter set:

q=0.1 vs q=0.15

q=0.1 vs q=0.13

 

 

 

Flexible_beam_mode_coupling_Estimation_of_post_length.mw

 

@acer

Thank you for clarifying that this is an endpoint of automatic simplification.

It’s interesting to note that Maple treats names differently.

.

 

Anyway, I was actually hoping that someone could refer me to comands I might have overlooked (like simplification options ‘size’, ‘power’, ’sqrt’ or other commands like combine or collect).

I am interested in compact output that I can communicate without reentering by hand which is error prone. Also, when transferring expressions to other software (Excel, Maplesim) it makes sense to have them in a compact form.

From classroom perspective 2^2/3/2 is not the final result teachers would expect. Interesting also to note that the Maple Calculator does not simplify powers of 2 symbolically (as it simplifies names).

Others simplify to

which for me does not represent a huge benefit.

 

Thanks again!

@acer  Its a result of a computation:

@TechnicalSupport I do have the same issue with 2021 on a 4k monitor. Not all pallets are rendered crisp. In my case units, expressions and calculus are not rendered as in previous versions. On the contrary the Greek pallet renders nicely. I hope that can be appreciated in the screenshot below.

In my case the steps of the article were not effective. The inconsistent rendering persists also in normal HD resolution but is less noticeable.

I am using Maple in a setting where I switch between monitors of different size and resolution without closing Maple (32’’/4k to 15’’/(4k in 2k mode) to 30’’). I have noticed a substantial improvement over the past years where less and less adjustments are required to find a good compromise for such a demanding use case.

This issue however is particularly disturbing because intuitively you try to refocus on something that can’t be brought into focus whereas the rest on the screen looks perfectly sharp on a 4k monitor.

@dharr 

I was expecting that the description of the parameter f would specify this (i.e. in which from the polynominal system has to be entered)  and overlooked the other indications.

Thank you

 

@MarcinM 

I am afraid, I can’t help you with tutors. I learned Maple myself. At the time, only the help system and user manuals where available. Today the Maples start page should be the entry point for starters. If you are missing something, tell it to MapleSoft. If you are not afraid of manuals, I learned allot on essential commands and Maples foundation from the programming guide (in  Maple enter help("programmingguide")).  MaplePrimes is probably the best place to ask a specific question.

The map command (as the seq command) is particularly useful if you want to apply a function on elements of a data structures (otherwise you have to use the do statement).   

@acer 

At the end it comes down to definitions what round bracket parentheses are used for in Maple. I tried my best to figure it out myself with the help of distributed bits and pieces of Maples help system. It did not work out.

The fact that () serves several purposes makes an accurate definition challenging but not impossible. I have always been impressed by the consistence and accuracy of Maples help system, but maybe () is simply too big to be addressed appropriately.

I still have the feeling that we touch matters here that will stay with Maple forever. The more I think about it, the more I am puzzled that no explicit mentioning of the syntactic purposes of () is available.

Thanks again for clarifying!

 

PS.: You are right about whattype. I should have deleted it. It is a remainder of my struggle to work it out myself.

 

 

 

First 64 65 66 67 Page 66 of 67