Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline PeterS  
#1 Posted : 12 July 2017 07:22:41(UTC)
PeterS

Rank: Newbie

Groups: Registered
Joined: 12/07/2017(UTC)
Posts: 3

Sorry for this newbie question.

Assume I entered a super simple equation like:

y=2*x

Now I want to plot this graph/function in interval [-10,10]

How can I do this?

When I right-click on the equation I expected a context menu entry like "plot".
But there is no such context menu.

How else can I achieve this?

Peter
Offline mkraska  
#2 Posted : 12 July 2017 11:06:49(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,173
Germany

Was thanked: 590 time(s) in 397 post(s)
I should add a section on plotting in tutorial.

Insert> Plot> 2D

The axes control is via mouse wheel scrolling (try shift and ctrl keys) and panning
Martin Kraska

Portable SMath with plugins and interactive handbook: http://smath.info/wiki/SMath%20with%20Plugins.ashx
Offline Jean Giraud  
#3 Posted : 12 July 2017 14:19:41(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 1,716
Canada

Was thanked: 460 time(s) in 353 post(s)
1. Shift+@ to get the plot canvas
2. enter the plot argument
3. Shift+Wheel mouse [shrink/expand X directions]
4. Ctrl+wheel mouse [shrink/expand Y directions]
5. Mouse left down to slide in either directions
6. once the initial default plot is done:
... click on plot, mouse wheel to zoom ± both directions

2D Plot Range.sm (9kb) downloaded 3 time(s).
2D Plot Range.sm (9kb) downloaded 4 time(s).
2D Plot Range CONSTRAIN.sm (13kb) downloaded 3 time(s).
2D Plot Range CONSTRAIN demo.sm (25kb) downloaded 7 time(s).
Offline PeterS  
#4 Posted : 14 July 2017 16:37:53(UTC)
PeterS

Rank: Newbie

Groups: Registered
Joined: 12/07/2017(UTC)
Posts: 3

Originally Posted by: mkraska Go to Quoted Post


Insert> Plot> 2D


Ok, thank you.

However I would like to have this function available as context menu of an entered function the paper.

Could this be added in the next version?
Offline Jean Giraud  
#5 Posted : 14 July 2017 16:46:37(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 1,716
Canada

Was thanked: 460 time(s) in 353 post(s)
Originally Posted by: PeterS Go to Quoted Post
However I would like to have this function available as context menu


Can you explain/exemplify ...
Do you mean: click on the plot for a drop down options menu ?


Offline Jean Giraud  
#6 Posted : 14 July 2017 17:27:11(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 1,716
Canada

Was thanked: 460 time(s) in 353 post(s)
... there is a missing detail from all examples and tutorials.
The Smath 2D default plot is on the X/Y ranges ± 10.
By default as well, it plots on the canvas pixel
i.e: 96 ppi [Pixel per inch], thus the extremely fine trace,
much finer than Mathcad that plots on ½ pica [6 ppi].
If you want to set intervals otherwise: construct 2D discrete.

Jean
Offline Jean Giraud  
#7 Posted : 17 July 2017 17:10:35(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 1,716
Canada

Was thanked: 460 time(s) in 353 post(s)
Egyptians had it their own ways [you know that]
For long time before the Egyptians, it is believed
the Mesopotamians had it much closer from "continued fractions".
"Pi" was approximated by various long empirical approximations [Legendre ...]
"Pi" was finally proved by Schwab [1813] => isoperimetres method.
Simon Plouffe [UQAM Montréal] method is pretty new, striking of simplicity.

The question is: can we devise some infinite numerical random suite to
approximate 'Pi' ... answer is NO ! Increase 'N' not to avail.

Jean

Random Monte Carlo Pi.sm (25kb) downloaded 9 time(s).
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.