C_R

3427 Reputation

21 Badges

5 years, 326 days

MaplePrimes Activity


These are replies submitted by C_R

@nm 
assigned is of course usefull for a particular name that is known. However, often not all names that are defined in a worksheet are known.

I am looking for a kind of unames('user') command that lists all unassigned names that a user has defined. Not all unassigned names the kernel knows. The opposite can be done in with anames( 'user' ): Listing all assigned names a user has defined.

By the way: I did not know the assigned command. The anames and unames help pages, that I new, do not link to the assigned page. On the other hand, the assinged help page links to unames and anames.

@Gabriel Barcellos 

Yes there is.

In the attachment I simplified the "variant" which contained alot of code elements only required to get a formating similar to Rouben Rostamian. The simplified lists needed to be reordered for plotting. This back an forth is a bit unnecessary to generate plot lists.

If you are only interested in point plots, I would put an fsolve statement (to solve for m) and eqG (to compute G) into a time loop and generate all plot points of interest at each time step.

plot_lists.mw

The problem is the Heavyside function which is not contineous. This is a challenge for solvers using the first derivative.
In this case you either use a solver that works with the heavyside function (I don't know one) or you solve for subdomains
 

evalf(subs(Heaviside(_Z - 1433/20)=1,yB_(10)))
                          64.95141449

The above does not work for
 

evalf(subs(Heaviside(_Z - 1433/20)=0,yB_(10)))

It's probably because of the arctan function that has infinite roots (which can be complex) and which is not contineous either. The domain must be restricted again.

 

@Carl Love 

I did not know that a Matrix is also an expression (parameter x of seq).

The evalapply application is something I missed completely. ?evalapply would have been helpfull when I tried to understand the ()() construct. It seems to be impossible to find this help page with a search term. "{" and "[" direct in the right direction but there is nothing for "(" from where a "See Also" could link to pages dealing with function application or round brakets/parentheses. These brackets play an important role in Maple Language but somehow do not seem to fit under the help topics.   

Thank you

@Carl Love 

Interesting way. Is that explained on ?seq or elsewhere?

@acer

On the search for easier ways, I was wondering if a recursive expand could make sense. Something like

expand['recurse'](expr)

Similar to eval['recurse'].

(I would prefer expand because it is more specific than simplify.)

op, with all its drawbacks, is at least easy to get something done and easy to remember.

@grompvevo 

I do not get the error with Maple 2024.1. Which version of Maple do you use?

I would be interested in the invariant you intend to use to test solutions. The invariant could be used to test the symbolic solution below as well

pdsolve({pde, v(a, t) = 0, v(b, t) = 0, v(x, 0) = f(x + 5), D[2](v)(x, 0) = -eval(diff(f(x), x), x = x + 5)})

You could of course use this solution, which is independed from any physical context, for tests as well.

@Christopher2222 

Correct. Probes could be a way to plot variables over time. However:

Probes connect to ports of components. In the case of  a sphere contact only two variables are exportet: dummy (which gives an error) and R which is the radius of the sphere.

But probes are only for plotting. If forces are used for computations within the model (e.g. for a controller) they must be  measured. For such purposes special measuring componets are available but they are not compatible with the ports of a contact element.

The model tree provides an overwelming number of parameters and variables for a contact element but I have not clue how to access this programatically (and what these parameters and variables stand for).

 

@imparter 

Not that I know. I tried a few things using right click.

@acer Got it. Thank you!

I had the idea to plot an array inside an array that contains the caption. plots:-display does not allow this.
The best I can think of in keeping a caption and a plot array together is using a table.

Is that an option for you?


Unfortuneately such a table cannot be exported as jpg.

Looks like that you ask for a missing feature.

plot_array_with_caption.mw

@acer 

This makes sense but I still don't fully understand why in my document, after entering the second time Digits:=30, "is" did not remember the former result with Digits:=10?

@GFY 

You forgot to call libraries and the Eigenvalues were complex. See:

equation915_debug2.mw

@Carl Love 

A use case in plot without workaround is zooming, panning and switching between these mode. In plot3d this is be switching the manipulator.

@one man 

Yes, I don't know of any translator who translates a scientific text (containing mathematical expressions) with the required exactness.

If you can recommend one, I would give it a try on a publication that preferably also contains contextual information. There is story behind every invention/development.

First 15 16 17 18 19 20 21 Last Page 17 of 67