Items tagged with format format Tagged Items Feed

Hey everyone,

I'm using printf to print out the following:

printf("Absolute error = %.10f \nRelative error = %.10f", abs(fractionPart-binarySum), 100*abs(fractionPart-binarySum)/fractionPart)

however, it's tedious always having to edit the two occurrences of "10" decimal places. Is there a way to define a variable like decimals := 10 and then refer to it inside the quotation marks in printf?

When doing numerical calculations or evaluations it is very useful to have float results shown in numeric notation, where the exponent is 3 * n.

Below are some simple calculations:

Is there a way to make Maple show the resultin (1) .. (3) as:

  • 333.3 106
  • 333.3 103
  • 333.3 100 or just 333.3

 

I've read the help page ?printf for the format codes many times over the years. I think that this is new:

The Z modifier, "%Zm" can be used to generate an alternate equivalent dotm representation that is used in communication with the GUI and in DocumentTools related functionality for the creation of XML content for .mw files.

Could someone show me an example of that?

 

When using units, then e.g. "2 m" is show as expected below, but "1 m" shown as only "m".  Even through correct, it is a non-standard way to write physical values.

How to get the physical values in a format of "{numerical} {unit}" even when the numerical part is 1?

Dear Community,

I generate two vectors and try to plot them one vs. the other ( ZPLOT vs. PREDS )  with the pointplot command. Unfortunately I get the message "points are not in the correct format" ... Probably a minor error, but it is unclear what format Maple expects here? What do I do wrong?

Tx. for the kind help in advance,

best regards

Andras

P.S. Maple file attached

Z_DAK_PROC.mw

Hi All,

I seem to have problems with the table formatting in Maple TA 2016, concretely changing the cell padding has no effect. Is this a general issue ? I don't have this problem in Maple TA 10 (I tried both versions using the same browser (Safari)).

 

Thanks!

Elisabeth

I would like the C-Text style in 14pt Times Roman while the C-2D-Math style is 12pt.

My use case is that I am typing in a single execution block.

I use Format >> Styles and select the style for C-Text and set it to 14pt Times. I click OK to close the dialog. Next I repeat this for the C-2D-Math style but this time set the font size to 12pt and, for testing, the colour to blue. The effect is to give me 14pt Times for both styles, though the C-text is black and the 2-D-Math is blue.

Can the effect I want be achieved, or is this a bug/feature?

This is Maple 2016.1 on Windows 10 64bit

 Thanks for any help

Hello,

I am using algorithmic variables to generate questions about the greatest common divisor of two integers.

Unforuntately the integers come out as 1,664 instead of simply 1664 (for example). How can I change the format to the simple version ?

Thanks for your help!

Elisabeth

Hey

I have a simple question. 

In maple - when working with Ohm's Law.

Maple know how to calculate with e, but how can I show the result

I have calculated the following calculation:

(2e-4)/2

Maple returns the result:0.0001000000000

How do I maple show the result as 1e-4?

 

Dear all

I have downloaded a third party Maple package from following link:

http://cpc.cs.qub.ac.uk/summaries/AEQP_v1_0.html

The distribution format is  "tar.gz", but I don't know what to with this format, that how should I load this package into Maple library. I have window 8.1.

If anybody have an idea about this format "tar.gz" please help me out.

I want to know the mistakes i have made in the documents attached to get the expected results every time.

NULL

Case 1: control = works fine now.

M1 := K__1*A*(Matrix(2, 2, {(1, 1) = 1, (1, 2) = -1, (2, 1) = -1, (2, 2) = 1}))/l__1 = Matrix(2, 2, {(1, 1) = 0.30e-2, (1, 2) = -0.30e-2, (2, 1) = -0.30e-2, (2, 2) = 0.30e-2})

NULL

NULL

Case 2: control = prints answer in next line.M1 := K__1*A*(Matrix(2, 2, {(1, 1) = 1, (1, 2) = -1, (2, 1) = -1, (2, 2) = 1}))/l__1 = Matrix([[K__1*A/l__1, -K__1*A/l__1], [-K__1*A/l__1, K__1*A/l__1]]) = Matrix(2, 2, {(1, 1) = 0.300000000000000e-2, (1, 2) = -0.300000000000000e-2, (2, 1) = -0.300000000000000e-2, (2, 2) = 0.300000000000000e-2})

NULL

control = prints expression and answer in the next line.

case 3

M1 := K__1*A*(Matrix(2, 2, {(1, 1) = 1, (1, 2) = -1, (2, 1) = -1, (2, 2) = 1}))/l__1 = Matrix([[K__1*A/l__1, -K__1*A/l__1], [-K__1*A/l__1, K__1*A/l__1]]) = Matrix(2, 2, {(1, 1) = 0.300000000000000e-2, (1, 2) = -0.300000000000000e-2, (2, 1) = -0.300000000000000e-2, (2, 2) = 0.300000000000000e-2})

NULL

Numeric formating does not function in case2 and cae 3. I dont know shat hv i done for these things to occur. But what should i do?

NULL

 

Download onlineResultandNumeric_format_doesnot_work_in_some_casesWhy.mwonlineResultandNumeric_format_doesnot_work_in_some_casesWhy.mw

Ramakrishnan V

rukmini_ramki@hotmail.com

Hello,

I'm trying to improve the fvisual aspect of a worksheet.

For some inputs or texts, I would like to reuse some formats.

Is a way to duplicate formatting such as for software like word or others ?

In others words, is there in Maple this kind of option   Duplicate formatting ?

Thanks a lot for your help.

 

Hello to all

 

I am Jorge Gracia an exchange student working on my Thesis.

I started working with maple recently, and I am having some problems to achieve the results that I am looking for.

My work consist in the next Steps.

Using maple and taking some fatigue tests data, create a wav file with the some of the following formats:

Supported data formats are wave type 1 (PCM integer Data 8 Bit unsigned, 16 Bit signed or 32 Bit

signed) and wave type 3 (PCM float data (32 Bit IEEE float).

 

In the same way, if I already have a wav file, read the values of every point of the wave in order to understand and study the results.

 

If I have a normal plot, convert it into a wav file plot with the formats from above

With all the results, I will be able to work with this wav files in a fatigue test machine achieving more realistic results than with the standard waves.

 

All the information about this will be welcome.

 

Thank you for all.

Hello, Currently when I calculate something, for example R=U/A where R is resistance, U is voltage and A is current, I get the answer in Volt/Ampere in stead of ohm. How do I change that?

Then, if the result is something like 3.124*10^-4 , how do I make maple output this in an engineering way, this would be 10^3, 10^6, 10^9 etc. to begin with?

Sorry if I formulate this wrongly, English is not my first language and I could not find an answer to this after some research.

Thank you

 

UPDATE and solution: for future reference:

You don't need to type out the whole unit like this:

1.0*Unit(volt)/(2000.0*Unit(ampere));

in stead you can do this:

(1.0*V)/(2000.0*A);

I got the V and A from the SI Units palette on the left hand side,

 ---

To answer my own question about the engineering notation, this can be "forced" by clicking on "Format" -> "Numeric Formating..." -> Engineering and then choosing the number of decimals. apply and set as default. After you are going to have to copy and recalculate your math as the !!! wont do it.

1 2 3 4 5 6 7 Last Page 1 of 38