Multiline functions works, actually ?!

Multiline functions works, actually ?! - Сообщения

#1 Опубликовано: 04.07.2010 17:56:13
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

I was rather surprised by founding this
Please look at the picture - found by accident.

I was convinced that is not possible yet. Actually, multiline function works - almost.
It seems that this is unfinished work. There are some extra things (red square) which might be a bug, inside function definition it seems we can have local variables not known outside the function, for some operators this will not work (actually I do not know for which one exactly - found few).

Anyway, it seems that this would be implemented quite soon - I hope
I would be very happy if this would happen ASAP .

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#2 Опубликовано: 05.07.2010 17:02:26
johnllander

johnllander

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

Группа: User

Hi, I am new to this forum and has just shifted to SMath, though previously I was using Mathcad. In SMath, I am working with a function that involves with a definite integrals. The problem is that the function does not evaluate the integral because all the parameters in the integrals are not recognized, it prompts that a variable is not defined. Please see example below what I mean to this:

z(a,b,c):=| y:=int(x^2+c,a,b,x)
| y

I hope you the above function could be understood as I don't know how to copy and paste mathematical equations into this forum.

In the above function, there is a prompt 'a - is not defined'. The good thing is that if 'a', 'b' and 'c' are assigned with values, the function runs. But what if the limits and the integrals are variables?

Thanks a lot.

John.
#3 Опубликовано: 06.07.2010 02:25:32
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Welcome John ,
Wrote

The problem is that the function does not evaluate the integral because all the parameters in the integrals are not recognized, it prompts that a variable is not defined. Please see example below what I mean to this:

z(a,b,c):=| y:=int(x^2+c,a,b,x)
| y


Definite integrals are calculated numericaly in SMath. Symbolic integration is not implemented yet. We hope that would be implemented ASAP. Search this Forum or use Wiki to find more information about it, please. Read the Tutorials and Examples on the Wiki. You can see there how to use SMath more efectively. I am convinced that with SMath you could do almost everything you need. If something is missing for you, just pot it here.
Wrote


I hope you the above function could be understood as I don't know how to copy and paste mathematical equations into this forum.


See this link please: How to use the Forum

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений