cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

IsScalar

Highlighted
Newbie

IsScalar

...

bar_anim.gif

jmG

Tags (1)
22 REPLIES 22
Highlighted

Re: IsScalar

Jean,

Scalars - You have enlightened me with your explanation.

I have only once found a valid application for the IsScalar function, see attached image. This was a function Stuart produced called 'Setcount'. Might be worth supplying a few examples of using the function so other collabs can follow.

Mike

Highlighted

Re: IsScalar

Jean, Scalars - You have enlightened me with your explanation

________________________

Here attached, the supplementary example of the range to vector converter from Stuart. "IsScalar" is usually paired with "matchNaN" and "markNaN". .. "FilterNaN". You may want to detect/decide about the outliers in a data set, mark them "markNan", then apply If IsScalar (matchNaN) and get rid of the outliers . This application is detailed in the DAEP [Data Analysis Extension Pack]. If you don't have that Pack, I could eventually reproduce it .

Have you zoomed down your image ?

Can't read, can't zoom + ...

Zoom is an irreversible destructive process.

It should not even exist. Only applicable if

the original is in hand, otherwise ... zap !

Jean

Highlighted

Re: IsScalar

Here is the function.

Highlighted

Re: IsScalar

Jean,


I can zoom in and out on the image without a problem. Have you got a middle mouse scroll button?


Cheers for the worksheet.


Mike

Highlighted

Re: IsScalar

Mike,

The middle mouse scroll buton, does scroll the page up/down.

It has nothing to do with an image. A zoomed down image

has lost pixels, those pixels don't fly in air, they don't exist

anymore in no kind of world. Nothing will recover except gadgets.

But what you haven't uploaded to PTC data base is not going to

come back for any collab. If you have set your Windows to

retrieve before downsampling, that is personal.

Your image is twice the file size as mine for the same " x "

screen size, totally destroyed. Mine is perfectly uploaded

and so perfectly readable. Your image is a congregation

of flies diarrhoea.

Jean

Highlighted

Re: IsScalar

Jean,

By holding the control button the middle mouse scroll can be used as a zoom tool. I understand that a zoomed down image looses quality, but even when zoomed into the image it can be seen clearly enough.

Your image is a congregation

of flies diarrhoea.

Jean

Noting like a bit of constructive criticism, hey!!!

The image was create using the following steps.

  • Mathcad file printed to pdf.
  • Snapshot of the required region and pasted into Infanview.
  • Save as a *.gif file
  • Upload to the forum.

Mike

Highlighted

Re: IsScalar

  • Mathcad file printed to pdf.
  • Why do you put bullets ?
  • Can't remove bullets
  • ..
Highlighted

Re: IsScalar

A range variable is not a scalar. A scalar is a single number. A range variable contains three pieces of information: start, increment, and end. If you use a range variable as a function argument, it does not pass the range variable to the function. It evaluates the function for each value defined by the range variable, so what is passed to the function is a sequence of scalars (so still not a scalar, but a sequence of scalars!). This is true for any function, including IsScalar. So what you get is a series of 1s as the result. If you pass a range value to IsScalar what you get as a result is 0.

IsScalar of range.gif

Highlighted

Re: IsScalar

Richard,

We are saying the same thing except that you are wrong !

>A range variable is not a scalar < [Richard]

In Mathcad, the range variable, i.e: the argument is a scalar [Jean]

That's all what it accounts for: disambiguation between the book definition and the Mathcad logical test vis the applicable numerical algorithms. I'm glad we have these two, side by side. So many, too many This is not a scalar ... There must be an array in there have been corrected in the former Mathcad collab. It might be a good idea to collect more of This is not a scalar.

Thanks for reading and collaboration.

Jean

Announcements