## 205 Reputation

3 years, 114 days

## 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.

Count_digits_in_a_binary_number.mw

## How do I algebraically factor out an exp...

Maple

How do I factor out a term,with command line, from an algebraic expression?

Consider the following algebraic expression.

 (1)

Suppose I wanted to factor out the quantity from both terms. Done by hand, it would look like:

What is the typical way to do this operation with a command? I tried using the  command with no success:

collect(f, A*sin(x)*theta(x))

From the help sheets, "The collect function views a as a general polynomial in x.  It collects all the coefficients with the same rational power of x." Though could be expanded into a polynomial in x (if  and are well-behaved), I just want to work algebraically and treat , , and as indeterminants.

## Can I disable maple's use of the ' funct...

Maple 2022

Can I disable maple's use of the ' function? (aka prime/derivative function)

For example, if

 (1)

it's derivative is obtained as

 (2)

.

We used the prime operator on the f to obtain f' on the right-hand-side.

The problem is, I use prime notation as a naming convention like in defining an integral equation such as:

This is common practice in many texts.

Is there a way that I can disable the operator function of ' so I can use it as a naming scheme? I have tried using the Alias( ) command which works on one evaluation but if an equation is passed to another function the Alias( ) command is extinguished by the previous evaluation and it takes the derivative again which is undesired.

how_do_i_disable_prime_operation.mw

## With(Phyiscs[Vectors]) can I create vect...

Maple

It's common in mathematical physics to use cartesian unit vectors to describe the position of a point in space.

 (1)

Sometimes it neccessary to convert a position vector like  to another cartensian coordinate system with different unit vectors, I call the primed system. In the primed system the position vector looks like:

When using Physics[Vectors] and the unit vector hat notations to define vectors in cartesian space, can I define more than one cartesian space such as:

and

?

Another way to ask the same thing: Can I define the position vector in different coordinates, each system having a distinct pair of orthogonal unit vectors?

The short answer I think is no. Given the current implementation it's not clear how one would go about defining the relationships between unit vectors from different coordinate systems. See below.

In 2D the transformation corresponds to a rotation of a vector the plane. The tranformation is characterized by the rotation angle α.

The unit vectors from different systems are related through scalar products.

Is there a way to implement scalar products of vectors from different coordinate systems using the Physics Tensors package? Here I create three different coordinate systems. I don't know whether the unit vectors systems X and Y have the same (i, j, k) unit vectors or does each system have its own triplet?

 (2)

 (3)

## How do I format express an exponent in s...

Maple 2022

Formatting_exponents_in_typesetting_situations.mw
How do I format express an exponent in standard notation when typesetting a caption?  10^2 displays as 100 when I want it to display as 10^2 but without the caret.