Anthrazit

885 Reputation

13 Badges

5 years, 317 days

MaplePrimes Activity


These are questions asked by Anthrazit

The member command allows testing, if a value is in a table.

But is it possible to check if the index is used, not the value?

L["hello"] := "funny"

"funny"

(1)

member("hello", L)

false

(2)

member("funny", L)

true

(3)

``

Download list.mw

I'd like to generate a string where the first part is changeable, and the second one needs to include apostrophs.

NODESteelProfiles_I:-Property("allmembers")

The section until til left bracket can be stored in one variable, but how can I add "allmembers") into the string?

Here's a possible bug in ExcelTools.

When importing from an Excel file, Maple drops text which is referenced from a different sheet. That does not apply to numbers.

Workbook_Excel_indirect.zip

Any ideas why the attached package won't install?

We've been using Maple Cloud previously, but that doesn't work anymore apparently (same problem as stated here, https://www.mapleprimes.com/questions/226154-Installing-Packages-From-The-Cloud-Hangs, support case filed previously).

But I can't even get it installed manually either.

NODELibrary.zip

Sometimes I find Maple a bit unconsequent regarding indexing, some things start with 0, others with 1.

The ReplaceChild function clearly starts with 1 for example, as you see in the help function.

ReplaceChild( 2 = XMLElement( "NEW", [], "text" ), doc )

replaces the second element in the list.

When using the AddChild function, one has to enter 0.

The AddChild(xmlTree, child, n) command creates a new XML element from xmlTree by inserting the XML element child at the position indicated by n. Parameter n must be less than or equal to the number of children in the original tree xmlTree. The new child node child becomes the n + 1st child of the resulting tree.

The first sentence sounds logical, but I would then expect the position of the first element to be 1. The other 2 sentences in the help file contradict the first one in my opinion. Either the position of the element is 0, as stated in the first sentence - then it also should be possible to get its value in the position 0. Or it is 1, but then it also should have been defined at position 1.
 

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