## 175 Reputation

2 years, 126 days

## Can one evaluate dirac spinor products u...

Maple 2023

Can one evaluate dirac spinor products using the Standard Model package? How far can I take the evaluation in the package? See maplesheet with commentary.

Evaluating_spinor_products_with_the_standard_model_package.mw

## Trouble getting the Sample(X, out) comma...

out_parameter_for_Sample(_)_and_rtables.mw
When I generate sample data using a random variable, a normal distribution and the Sample command, I want to see the sample and the values used to randomly evaluate the distribution which generates said sample. The Maple help sheets say you can so this with the out parameter in the Sample command. I try several different calls and hoped the rtable is filled on execution. As seen below, the execution fails. Am a specifying the rtable incorrectly? See attached Maple sheet.

When I generate sample data using a random variable, a normal distribution and the Sample commands, I want to see the sample and the values used to randomly evaluate the distribution. The Maple help sheets say you can so this with the out parameter in the Sample command.

From the help, we are required to specify a float rtable, that will be filled when the Sample command is succesfully executed.

Define a random variable.

 (1)

Sample that random variable. We sample it 10 times and look at the output.

 (2)

The float rtable is defined with the sample number of elements as will be sampled.

 (3)

 (4)

Now I try several different calls and hope the rtable is filled on execution.

As seen above, the execution fails. Am a specifying the rtable incorrectly?

## unevaluated/inert Matrix-Vector product...

Maple 2021

Can Maple carry around an unevaluated/inert  Matrix-Vector product(A matrix product without executing the matrix multiplication)? See Maple sheet.

inert_matrix_products.mw

Can Maple carry around an unevaluated/inert explicit Matrix-Vector product?

Define a matrix K and vector U as:

 (1)

 (2)

I can take their product using MatrixVectorMultiply( ) I get,

 (3)

however output I am really looking for is

In the later case,  is still a product however the actual matrix multiplication is not carried out. Sure, eventually I will want to evaluate the matrix-vector product but sometimes when setting up a problem I want to look at the explicit matrix equation before any explicit matrix multiplication is carried out.

Here I show some ideas that don't work but may give a sense of what I am going for. I am essentially trying to mute the computation of the product while keeping the elements of the product together for further substitutions elsewhere. This there a standardized way to complish this? Or do I have to write my own procedure for something like this?

 (4)

 (5)

 (6)

 (7)

## Maple's LateX export contains unknown La...

Maple 2022

I often want to export an expression from Maple to LaTeX. Often, the output will contain commands that my LaTeX compiler doesn't recongnize. This hinders my LaTeX document production efficiency greatly. I use MiKTeX and Texmaker to generate documents in LaTeX language. Naively I assumed that Maple sticks to core LaTeX packages when generating an output. I still don't know if that is the case. The main issue is that, I don't know which LaTeX packages some of the Maple outputs use, and so, I don't know which packages to load in my LaTeX document.

As a concrete example, I show how I convert an expression to LaTeX language and how that particular output contains commands: \iup and \idn which are not recongnized by my LaTeX compiler since I don't know which package these commands come from. I google search for commands \iup and \idn came up empty. How do I figure out what package these commands come from

Latex_export_problems_1.mw

## Is there a command that will count the n...

Maple

Is there a command that will count the number of digits in a binary number or any number for that matter? For example: 10110  has 5  digits in binary representation.

I choose to define a number in base 10.

 (1)

Then I choose to convert that number into base 2.

 (2)

On visual inspection it is determined that  has  digits in binary representation.

Is there a common command that can count the number of digits in a binary number? Such as,  has  digits.