Plots with X-Y Plot with variable

Plots with X-Y Plot with variable - Сообщения

#1 Опубликовано: 05.03.2014 06:54:35
freakyuser

freakyuser

0 сообщений из 1 понравились пользователям.

Группа: User

Hey guys,

since I´m using SMath instead of Exel sheets, my calculations are a lot easier, thanks!

But currently, I have a problem, where I was unable to find a solution.

Is it only possible, to plot ONE function?
I want to do plot a diagram where the variable (x-axis) is at the beginning of the sheet(e.g."z"). It influences the whole calculation over 2 pages. It's to much, to get in in one formula.
It is possible to plot a diagram of the "last" formula (e.g. "f()") in dependence on a variable "in the beginning"
(=> f(z), where z is not in f(), but in a previous formula of which f() is dependent.)

Hope someone is able to answer my question.

regards

freakyuser
#2 Опубликовано: 05.03.2014 09:09:55
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Normally, it is a good idea to attach an example for your problem.

You might consider consulting the handbooks.If you use the unofficial portable version, then there is a pre-installed interactive handbook ([?]-Button on the toolbar) with a Chapter on Graphics.
Also, in the extension manager (Extras> Plugins> Handbücher) there is a german pdf handbook.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Опубликовано: 10.03.2014 03:11:37
freakyuser1

freakyuser1

1 сообщений из 7 понравились пользователям.

Группа: User

Thanks for your reply.

Yes, I use your portable version and I read your handbook almost completly.

But it wasn't able to solve my problem.

I attached the file. I want to make a plot/diagramm how e.g. T_max changes the solution.


Drossel_berechnung.sm (26 КиБ) скачан 40 раз(а).
#4 Опубликовано: 10.03.2014 04:39:11
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote

I read your handbook almost completly.

But it wasn't able to solve my problem.

That must have been frustrating. Can't believe that you did not find a single error or typo... Any hints welcome.


Normally, you would keep the parameters which are subject to later change as function arguments in the definitions. E.g. all quantities should be defined as function of T.max.

However, given the sheet as it is, the simplest way is to switch off the numeric parameter specifications. That enforces SMath to store the symbolic formula and you can afterwards apply the substitution operator (at() function).

Drawback is that you do not get numeric results unless you either provide global values by just defining them in the sheet (can be done below all other definitions) or by specifying local values using at().
drossel2.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#5 Опубликовано: 10.03.2014 07:07:57
freakyuser1

freakyuser1

1 сообщений из 7 понравились пользователям.

Группа: User

Wrote

That must have been frustrating. Can't believe that you did not find a single error or typo... Any hints welcome.


I haven't read of course every word and not only because of this issue, I think is it helpful to get a overview of SMath's capability. However I haven't found an eye catching mistake. Good job

Wrote


Normally, you would keep the parameters which are subject to later change as function arguments in the definitions. E.g. all quantities should be defined as function of T.max.



I tried to do this already before asking, but wasn´t very successful... Well, I attached my "Test file" also.

Wrote


However, given the sheet as it is, the simplest way is to switch off the numeric parameter specifications. That enforces SMath to store the symbolic formula and you can afterwards apply the substitution operator (at() function).
Drawback is that you do not get numeric results unless you either provide global values by just defining them in the sheet (can be done below all other definitions) or by specifying local values using at().



Thanks, I was able to reproduce it, but the reason why I use SMath, the "documentation" like calculation gets lost.

How should I design my calculations, to use the diagrams and keep the numeric results? (Maybe a short example )

Thanks for your help and work for this great tool.




Drossel_berechnung_test.sm (28 КиБ) скачан 42 раз(а).
#6 Опубликовано: 10.03.2014 07:20:31
freakyuser1

freakyuser1

1 сообщений из 7 понравились пользователям.

Группа: User

Additionally, it would be great, to use the X-Y Plot Plugin instead of the build in function, is it also possible?
#7 Опубликовано: 10.03.2014 08:54:56
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

It is essential that DeltaT.x is stored as symbolic definition with T.max not replaced by a value.
Downstream the sheet you can give it a value for displaying results.

For plots, you have to clear the value and use the substitution operator. Alternatively, you could define DeltaT.x as a function of T and T.max in the argument list and do as well for all other defintions. Then you just could call I(25°C, x°C) instead of using at().
drossel.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#8 Опубликовано: 10.03.2014 11:02:56
freakyuser1

freakyuser1

1 сообщений из 7 понравились пользователям.

Группа: User

Wrote

Then you just could call I(25°C, x°C) instead of using at().



This is something I tried to do, but when there are more than 3 variables it becomes rapidly confusing.

So I think the at() function is the better way.

I tried to use it just like you did, but the value doesn't change.
I changed the formulas to symbolic.

Whats the issue?

Thanks for your help and time.
test.jpg
#9 Опубликовано: 10.03.2014 19:16:15
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

As I said, the definition of T.max must be after the definition of DeltaT.x, otherwise the numeric value is stored in the definition instead of the symbol. Hover with the mouse over the definition of DeltaT.x in order to see what is actually stored.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#10 Опубликовано: 11.03.2014 03:01:45
freakyuser1

freakyuser1

1 сообщений из 7 понравились пользователям.

Группа: User

OK, with the mouse over it's plausible.

But it only works, when I write T.max under the definition of I(T), otherwise I(T) is stored also numerical and not symbolical.

The other way is, to clear T.max before every definition and define it again afterwards.

Is this the only possible way, or do I something wrong?
Drossel_berechnung_test_v2.sm (334 КиБ) скачан 45 раз(а).
#11 Опубликовано: 11.03.2014 03:13:53
freakyuser1

freakyuser1

1 сообщений из 7 понравились пользователям.

Группа: User

Well, one option would be to write the definitions on the top and the values afterwards, so everything is stored symbolic.

But also, the "documentation style" and the clarity would be lost.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений