## How to restrict a function to a "y" value?...

Hello,

I am currently doing this thing:

unapply(piecewise(x>37-0.25*t and x<37+0.25*t,-(11*sin(t/2+1.145)-10)*((x-37)^2)+(-3.5*sin(t)+ 1),10),x);

(It is used with "for t from 0 to 8 do *things* end do", hence why I use "t")

The problem I have is I don't want this (over) complicated function to go over y=10, but the conditions I tried were not working that well.

I saw on the Help page that it should be possible, but my attempts were unsuccessful...

## bug in Latex generation...

Maple 2018.2 generates wrong latex in this example. In Latex a space in command name is important. So "\tau L" is not the same as "\tauL".  Since in the later case, Latex will complain that there is no command "\tauL"

Maple generates "\tauL" in the latex, when it should be "\tau L" in the following example, so the latex fails to compile because there is no command called "\tauL" in Latex.

Here is screen shot showing the problem and the Maple command to reproduce it

restart;
interface(showassumed=0);
pde :=  diff(u(x,t),t)=k*diff(u(x,t),x$2)+(exp(-c*t)*sin(2*Pi*x/L)); ic := u(x,0)=f(x); bc := D[1](u)(0,t)=0, D[1](u)(L,t)=0; sol:=pdsolve({pde,ic,bc},u(x,t)) assuming L>0,t>0,k>0; latex(sol) Any chance Maplesoft could fix this? Possible workaround for now is to use something like "\newcommand{\tauL}{\tau L}" in preamble for this specific case. ## Dataframes - Looking for a new flashlight Maple 2018 Just a simple use of DataFrames. Looking for a new flashlight, I decided to compile a small selection of flashlights for comparison. Note:The values for cost used is in Canadian dollars, and the stores for the prices taken were from the following - MEC, Lowes, Canadian Tire and Amazon.ca  (1)  (2)  (3)  (4) No surprise that the cheapest and lowest light outputs were incandescent flashlights. The list isn't very large so lets add a few more flashlights to our list  (5)  (6)  (7)  (8) Interesting to note that Police Security generally seems to be the cheapest.  (9) Adding yet more flashlights  (10)  (11)  (12) Now lets select just the Maglite models  (13) Or select the flashlights that have a burn time longer than 100 minutes  (14) Download flashlight3.mw ## Adding a color bar for the following code and inte... Asked by: What is the simplest method for adding a color bar for plottings? (a scale that shows the correspondence between numbers and colors) and could you interpret the graphics and the color bar? I need your valuable comments. I use Maple 2018. For example; question.mw I mean ## internal error from pdsolve when HINT is used. Com... Asked by: This code used to work OK in an earlier version of Maple 2018. I do not know what changed and if it some change in Physics package that caused it. restart; pde:=diff(u(r,theta),r$2)+1/r*diff(u(r,theta),r)+1/r^2*diff(u(r,theta),theta$2)=0; bc:=u(r,0)=0,u(r,Pi)=0,u(0,theta)=0,u(1,theta)=f(theta); sol:=pdsolve([pde,bc],u(r,theta),HINT = boundedseries(r = 0));  Now it gives the error Error, (in assuming) when calling 'assume'. Received: 'invalid arguments' Workaround is to remove the HINT above. So the following now works restart; pde:=diff(u(r,theta),r$2)+1/r*diff(u(r,theta),r)+1/r^2*diff(u(r,theta),theta\$2)=0;
bc:=u(r,0)=0,u(r,Pi)=0,u(0,theta)=0,u(1,theta)=f(theta);
sol:=pdsolve([pde,bc],u(r,theta));



Should this error message show up when using the HINT option?

Maple 2018.2 with Physics package cloud version 205.

Here is screen shot showing it was working in Physics 170

## How calculate the Skyrme of motion from the Lagran...

How can I calculate the Euler-Lagrange equation from the Lagrangian density from Gauged Baby Skyrme model in maple using the physics package? Here, the rules of the operation in the inner space are the same that of the vectors conventional: dot and cross products, etc...
Following below the Lagrangian density.

Errata:

## writeto command issue...

Never really used the writeto command but what's with all the typesetting gobbledygook in the text file?  It occurs with document and worksheet mode.  Perhaps it's only meant for classic or command line maple?

## How do I prove False/ True statment by using Maple...

what is the code of the following equation:

where h, and g are matrices with positive determenets.

Hello,

every time I input a formula I get:

Typesetting:-mparsed(x^2 +5 -2,x^2+3; "_noterminate")

I can't get rid of this error: this is very basic, what happened?

TIA, Roberto

## Generating LaTeX code for a weighted graph...

I am generating a lot of random graphs in Maple, and I need to generate the LaTeX code for these graphs. It has been working very well, until now, when I got to weighted graphs. The LaTeX code does not create the weights. I know I can modify the code to add the weights, but my question is two-fold: why aren't the weights automatically generated? is it possible to have the weight automatically generated, how? Nothing in the documentation appears to address these issues.

An example of what I attempting to do is in the attached worksheet.

Thanks!

graph.mw

Hello everyone, I am studying to be an engineer  and I have created this document, where I both write lots of notes and make a lot of exercises.

Suddenly my document crashed and I got this message "There were problems during the loading process. Your worksheet may be incomplete."

I have made sections for each lection - we have had 5 in total for now, but my documents only loads 2.. :(

I see that @Joe Riel has fixed a similiar problem, but I just can't figure it out myself :(

Hope anyone can help

PS. my document is in danish but there should be 5 sections where Maple only loads 2..

Edit: for some reason I can't upload my maple-file.... I'll try again later

## partial integration hint?...

Why can't maple integrate

restart;
assuming([int(GAMMA(a, s)*exp(-b*s), s = 0 .. infinity)], [b > 0, a > 0])

which has a simple result obtained by partial integration?

## Kronecker product symbol ⊗...

Is het possible to use the circletimes symbol  ⊗ from Maple's Operators palette as an alias for KroneckerProduct(A,B)?

Instead of KroneckerProduct(A,B) :  A ⊗ B

An abbriviation would be convenient for the following expression:

A ⊗ B ⊗ C ⊗ D ⊗ E ⊗ F ⊗ G

I tried alias, macro, applyrule but was not successfull.

Is is possible or should I add it to the Maple 2019 wishlist?

Harry

## Disappearing Code Edit Region...

I vaguely recall others complain about disappearing Code Edit Regions. Does anyone else recall that? I had one disappear from the very top of the attached worksheet (right after the restart), causing me to lose about 15-30 minutes of work. I've totally recreated the work, so I have no interest in this worksheet being repaired. I'm merely posting it in case anyone wants to do an autopsy on it.

Another issue that happened twice with this worksheet is that when I unchecked the "Expanded" box on the Code Edit Region menu (pull out from the right side of the screen) and copied the text to my clipboard (for posting on MaplePrimes), that copied text was missing my most-recent changes to the code. They reappeared when I expanded again. (But it's really difficult to copy-and-paste a multi-screen Code Edit Region when it's expanded.)

My final issue (and this has bothered me for years), is how the heck are you supposed to find the line with the syntax error in a several-hundred-line Code Edit Region? Unlike with inline code, the cursor is not placed near the error location._Binomial_missing_Code_region.mw

## determined time period of Cos function...

how I can determined time period?

thank you

 >
 (1)
 >
 >
 (2)
 >