## 721 Reputation

15 years, 83 days

I have a degree in Mathematics and Physics from the Danish University Aarhus, comparable to a masters degree with thesis - majoring in Mathematics. In 1991-92 I was a visting scholar at UCLA, Los Angeles, following graduate courses in Applied Mathematics. Since 1992 I have been a teacher in a high school (gymnasium) in Denmark. Special interests: Applied mathematics, graphics and popularizing Mathematics.

## y-range containing 0...

Maple

Dear Maple users

I have a question which may seem very simple, but for some reason I have not been able to find a solution to it in Maple:

If plotting a function in Maple by specifying an x-range, but not a y-range, Maple will somehow find a reasonable y-range itself. That's basic stuff. But how do I ensure that this y-range contains the value 0, and Maple still decide the min and max by itself? I could set it myself, but my worksheet require that it is done automatically independent of the given function at hand.

Erik

## How to handle substrings in a string w...

Maple 2023

Dear Maple users

As a followup on my recent question about how to count the number of characters in a string containing special Danish characters here: https://www.mapleprimes.com/questions/236478-How-To-Count-Length-Of-String-When-Special

I also need to handle substrings from a string in my work in Cryptography. In my attached file I present an example with a string containing two special characters. The problem is however, that I need to access individual characters in the string. Normally I would do so by using the command substring. As indicated in the file it doesn't work very well, because the special characters are represented by TWO elements (bytes)!

Is there a smart way to create a new command named SUBSTRING to accompanying the great LEN command suggested by vv?

Regards,

Erik V.

substrings.mw

## How to count length of string when speci...

Maple

Dear Maple users

I wanted to count the number of characters in a string containing special Danish letters beyond a...z. When using the special Danish letters æ, ø and å, those letters or characters are being counted as 2 characters each. I hope someone can help me having Maple count the length of strings containing those characters properly.

Regards,

Erik V.

## What is the problem with this file?...

Maple 2022

Dear Maple users

I have encountered a very strange error at one of my students. When using functions from the Expression Palette, she receives an error. It happens every time she is using this Palette. A reinstallation of Maple didn't help solve this issue. When using Command Completion for the very same function (for example cosine or square root), it works properly.

She did send a Maple file to me in order for me to investigate it. I opened it and reexecuted the entire document. The error messages remained. I tried applying the functions from the Expression Palette myself resulting in the same errors. I even opened a new document and tried it again. Still an error. Then I closed Maple completely and opened it again. Within a new document, I applied a function from the Expression Palette. Now it worked!! I can't seem to understand  the logic behind this behavior. The file sent to me by the student obviously contain some kind of error, but why will this error spread to a new document, which I have opned on my own computer? My own computer does not have any issues with Maple.

I have attached the Maple file with the errors and a screen shot. I hope someone can explain this strange behavior and tell me how I can help this student make Maple work again.

Kind regards,

Erik V.

Maple file:

Error.mw

## Turning a Text into a Matrix of letters...

Dear Maple users

How do I turn a text into a Matrix of letters in the most convenient and effective way in Maple? Let's say the text contains N letters and the first n of these should be placed in the first row, the next n letters in the second row and so on. In my first question the text is one continous string of only letters a-z with no spaces or numbers, etc.

My second question would be how I can do the same as above, if the text contains spaces, numbers and other special symbols, which should be ignored.

The subject is Cryptography. I hope some can help.

Erik

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