C_R

3577 Reputation

21 Badges

6 years, 96 days

MaplePrimes Activity


These are replies submitted by C_R

@acer 

subsop is what I was looking for.

Thank you!

@Preben Alsholm 

Thats a nice option in cases where the replaced name is not part of the integrant.

It does not work for the worksheet I have attached above (see update).

@ecterrab 

Thank you for taking the time. I will continue digging. I have just discovered the physics mini course which I think is a good template for other branches of sicence an engineering.

@ecterrab In the attached file I compared the new command with a case from classical mechanics to derive equations of motion from D'Alembert's principle. In this case I noticed a difference in sign of the output which has to be taken into account. Would it be possible to return optionally an expression

diff(diff(L,v),t)-diff(L,r)

(as in the attached) instead of an equation?

In any case LagrangeEquations makes life much easier. Great enhancement!👍👍

Lagrange_Equation.mw

@Joe Riel 

The AD/DA converters you suggested provide logic signals on the bit level. This level of detail is not required for off-the-shelf micro controllers, which I want to simulate.

The plant in my model provides real signals by using sensor components of the MapleSim library. So, in those cases I would look for  AD/DA converters that work in the signal “domain” (i.e. that discretizes a real signal).  

Looks like that there are no libraries that match my request but if there are any components that can be used in combination with MapelSim's discrete components I would be interested. AD/DA conversion is not what I am primarily looking for. I have no solution for FIR filters. A convolution component with user defined kernels would be a big step in that direction.

Thank you for indicating what is possible today.

 

By the way, I tried to discretize a real signal with the components you proposed but could establish a proper logic 8-bit connection with 2022.2

Update: With 2022.1 the connection works and the trigger ports a visible

@alex_b 

Thank you, that’s very helpful. I have not noticed PORT LOCATIONS and SUBSYSTEM AUTORESIZE and will have a try.

 

I found a shorter way of to replace functions of t by names for the above worksheet

subsindets(old_eq, function(identical(t)), f -> op(0, f))

A much shorter way from acer

@acer Thank you again!

Optimized_code_for_custom_component_template_02.mw

@acer 

I have overlooked this assignment.

Thank you!

@eithne 

I have tried to figure out what the “simpler steps to create and update subsystems” are. Creating was already simple. I could also not spot “clearer component labeling” in my models. An explanatory video (as the one for the Web Handling Library) would have been nice to appreciate the details.

What I discovered instead is a much improved port alignment of subsystems. Without updated documentation, I tested it on models where I abandoned port alignment to straighten connection lines (see suggestion 6). It worked great on 4 screwed up subsystems.

I hope I am not spoiling the show before the documentation is updated but this is good news worth communicating.

Thank you for that 👍👍

@phil2 

MapleSim 2022.2 improved substantially on (6). I could easily figure it out myself even without updated documentation, which is a sign of good usabilty.

Congratulations for this simple and elegant solution!

@Joe Riel 

I have found a way to force the clipping on Windows 10. After a system restart:

  • Launch Maple
  • Create a new document and type in something
  • In the system settings for the display change the font scaling to a larger percentage (I did 150% -> 250%)
  • Close the document to force the clipped dialogue.

This is not the use case that occurred to me last time when I posted the question. But maybe it helps identifying the root cause.

Also: After working for a while without restart but using other applications as well, the clipping was not reproducible anymore. When changing the font scaling I got an additional system message (on a blue banner) asking if I want to keep the settings. Confirming with yes to keep the scaling seems to make the clipping disappear.

Difficult to tell without knowing the Maple input.

@zenterix 
Perhaps I have found an explanation why solve does not return a solution in your case:

I assume that solve finds a first zero at x=0 and discards it since sin(0)/0 is undefined at this point... and discards all other solutions of sin(x)/x (instead of returning another solution as one could have expected from the help page). Here are some examples in line with this assumption

NULL

sin(x)/x"(->)"

cos(x)/x"(->)"{x = (1/2)*Pi}

(sin(x)/x*(sin(x)/x))*(x+1)"(->)"{x = -1}

sin(x)"(->)"{x = 0}

An expression where solve ignores 0/0 and correctly does not return x=1 as solution

(x-1)/'(x+1)*(x-1)'"(->)"

NULL

(x-1)*(x-3)/'(x+1)*(x-1)' "(->)"{x = 3} 

(x-1)*sin(x)/'(x+1)*(x-1)'"(->)"{x = 0}

Annother expression with 0/0 where solve does not return a solution

sin(x)/tan(x)"(->)"

solve(sin(x)/tan(x), allsolutions)

sin(x)/tan(x)"(=)"cos(x)"(->)"{x = (1/2)*Pi}

``

NULL

Since other computer algebra systems provide solutions without additional options, I can agree that Maple could be more user-friendly in this case.

Download sinc02.mw

@Joe Riel 

So far, I managed to survieve with blindfolded Tab & Enter. The short cuts are much better.
Thank you!

First 58 59 60 61 62 63 64 Last Page 60 of 70