Skip to main content
1-Visitor
April 27, 2016
Question

How can i perform a Rowbreak like in MIcrosoft Word

  • April 27, 2016
  • 8 replies
  • 8880 views

Hey guys,

due to my complicated and long Calculation i need to perform certain rowbreaks, so that i can print it on "A4" otherwise i would need "A2" format.

Now i have the problem that i dont know how i can perform a "Rowbrake"

As seen in attached picture...

Is that possible?

Thx guys

8 replies

1-Visitor
April 27, 2016

I need that rowbreaks in my for and while loops aswell

23-Emerald IV
April 27, 2016

Seems like you're using Mathcad 15, which is good because in Prime it's not possible to do:

Which you obtain by pressing [CTRL-ENTER] instead of +.

Note that you can only break an expression at a summation point.

Success!
Luc

1-Visitor
April 27, 2016

How about one of these two options?

1-Visitor
April 27, 2016

hmm ok and is it possible to break the hole loop so that it looks like that:

Iter FA.....:   ---- Rowbreak

Loop

1-Visitor
April 27, 2016

hmm ok thx not working now .... its kinda annoying

1-Visitor
April 27, 2016

The problem is writing only with numbers and separating one condition into 2 or 3 separat is not good for understanding the hole part

Next problem of formating.

How to put it in A4 format  lol?.

23-Emerald V
April 27, 2016

Unfortunately, with the exception of the addition operator, you can't automatically break lines in Mathcad 15 (and below).

There are several methods of getting round the problem, which usually take up more vertical space (I assume that's less of a problem?).

The first thing you can try is reducing the size of your standard font - that may squeeze a few expressions into the page,

The second thing (which I assume you've either done or don't want) is to use Landscape mode.

Then you enter the realm of modifying your expressions to use less horizontal room.   For example, ..

  • Put your function arguments into a vector and either re-assign to the variables within the function or modify your function to pick the appropriate elements from the vector.
  • Break up long expressions manually and piece them back together again on separate lines.

See this image for some examples:

Stuart

23-Emerald IV
April 27, 2016

You're wasting a lot of space with your IsOK function.

Using it every time and checking if the output is equal to the string "OK" or "NOK" wastes more.

Why not have the function produce a logic TRUE or FALSE automatically by defining it as:

Then you can just test:

But even that takes more (horizontal) space than the simple and clear:

Success!

Luc

1-Visitor
April 27, 2016

ae what do you mean.

Hmm i think my mathcad knowledge is limited

1-Visitor
April 27, 2016

OO seems to be more complicated than writing my loop

Thx

23-Emerald IV
April 27, 2016

And also you could turn your evaluation method around, in returning when a condition is NOT met. So instead of:

You do:

Success!
Luc

1-Visitor
April 27, 2016

but the condition is saying

OK if all conditions are OK

shouldnd i need to write

return "NOK" if a not equal b and c not equal d

23-Emerald IV
April 27, 2016

Exactly that's what I'm proposing. OK (only) if all conditions are OK, so if only one if them is not OK, then it's already NOK.

Luc

25-Diamond I
April 27, 2016

Here are a few more

But I noticed that your IsOK_all has an odd number of arguments?

WE

1-Visitor
April 27, 2016

odd number what do you mean?

25-Diamond I
April 27, 2016

Maybe I was wrong but I counted 17 on first sight.

Maybe my old eyes need some rest