plot a function

plot a function - Messages

#1 Posted: 12/4/2019 3:08:53 PM
Ale16595

Ale16595

0 likes in 35 posts.

Group: User

Hello everyone!
I have difficulty plotting the function c which depends on the derivatives of two functions which in turn depend on the parameter t.
Could anyone help me? This in the smath file.. curvatura.sm (11 KiB) downloaded 35 time(s).
Thank you so much
sggs.png
#2 Posted: 12/4/2019 5:37:09 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Wrote

Hello everyone!
I have difficulty plotting the function c which depends on the derivatives of two functions which in turn depend on the parameter t...



Maybe this is what you want...

Captura.PNG

... and the .sm file: curvatura1.sm (9 KiB) downloaded 43 time(s).

#3 Posted: 12/4/2019 6:19:46 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Could anyone help me ?


To plot both systems ... Jean

curvatura.sm (11 KiB) downloaded 55 time(s).
Maths Tangent.sm (91 KiB) downloaded 57 time(s).

#4 Posted: 12/5/2019 8:37:36 AM
Ale16595

Ale16595

0 likes in 35 posts.

Group: User

thank you very much for your help, I hope I have no more problems
#5 Posted: 12/5/2019 11:20:31 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Wrote

thank you very much for your help, I hope I have no more problems



You´re welcome.
It's okay to ask, because you express the need to know. It is better to ask than keep silence


#6 Posted: 12/6/2019 9:21:28 AM
Ale16595

Ale16595

0 likes in 35 posts.

Group: User

Thank you very much for the availability.
But I need more help.
How can I draw the tangent line to the equation in parametric form?
this is the file … curvatura2.sm (12 KiB) downloaded 43 time(s).
#7 Posted: 12/6/2019 12:48:15 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi Ale. Here, some ways.

curvatura3.sm (25 KiB) downloaded 47 time(s).
curvatura4.sm (20 KiB) downloaded 46 time(s).

Best regards.
Alvaro
1 users liked this post
sergio 12/6/2019 5:23:00 PM
#8 Posted: 12/6/2019 1:08:58 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Thank you very much for the availability.
But I need more help.
How can I draw the tangent line to the equation in parametric form?


For the Tangent over C(t), it will follow the scalar rules
of the document Tangent.sm posted before.
The Tangent over the parabola is another business.
Smath does not derive linterp(x) as it is NOT a function
only an interpolation. This project and lot more are
rescued via Infinitesimal Analysis [dates back before CAS].
For that particular typical user point of tangency, OK.
You may want to experiment more .
Don't mind to see noisy curvature [disabled in collapsed].
Chers ... Jean.

TangentInfinitesimal.PNG

curvatura2 Copy.sm (30 KiB) downloaded 37 time(s).

#9 Posted: 12/6/2019 1:16:01 PM
Ale16595

Ale16595

0 likes in 35 posts.

Group: User

Thanks for the answers.
But if I wanted to find the tangent to the curve when the parameter t changes, how should I do?
#10 Posted: 12/6/2019 2:05:01 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

Thanks for the answers.
But if I wanted to find the tangent to the curve when the parameter t changes, how should I do?



Do you mean the envelope, all the tangents for the range en T?

curvatura5 - envelope.sm (23 KiB) downloaded 48 time(s).

Clipboard01.gif

Best regars.
Alvaro.
1 users liked this post
sergio 12/6/2019 5:19:00 PM
#11 Posted: 12/6/2019 2:55:53 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Hi Ale. Here, some ways.


Thanks Alvaro ... superb/saved ... Jean
#12 Posted: 12/6/2019 3:02:35 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Ellipse otherwise from complex.

Circle Complex [Ellipse ROT].sm (13 KiB) downloaded 48 time(s).
#13 Posted: 12/6/2019 10:48:04 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Your project has been refactored strictly on discrete.
OK, you have functions but life is from collected data.
Collected data are always noisy from the quantization,
a small amount of Gaussian Ksmooth is often sufficient.
Ksmooth being applied before cinterp
As exemplified, cinterp is the best interpolator for
a clean curvature plot from infinitesimal maths.
I don't understand what your were attempting c(t) last module.
Please, don't hesitate for more.
Cheers ... Jean

Maths Tangent Data Set Copy.sm (36 KiB) downloaded 38 time(s).

1 users liked this post
sergio 12/7/2019 7:36:00 AM
#14 Posted: 12/6/2019 11:22:41 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Your project has been refactored strictly on discrete.
O


.... more maths are coming:
cumulative integration, arc length
derivative you already have it from last attachment.
#15 Posted: 12/7/2019 6:12:23 AM
Ale16595

Ale16595

0 likes in 35 posts.

Group: User

Thank you very much for the help, I appreciate it very much.
I hope to be able to continue alone.
kind regards
#16 Posted: 12/7/2019 10:48:24 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Thank you very much for the help, I appreciate it very much.
I hope to be able to continue alone.
kind regards


Your project now all done, based on discrete collected data,
collected data that you will have to smooth [not offered].
Smoothing is a large Engineering tool box !
I hope to be able to continue alone.
Let's see the continued adventure.
Cheers ... Jean

Maths Tangent Data Set.sm (60 KiB) downloaded 48 time(s).
1 users liked this post
sergio 12/7/2019 11:50:00 AM
#17 Posted: 9/19/2024 10:40:49 PM
Norm Schutzkus

Norm Schutzkus

9 likes in 90 posts.

Group: User

Hello Alvaro, Is graphing a tangent line as exhibited in "curature3.sm" only available for a plot/function in parametric form, i.e. is this available for a cartesian plot/function?

I welcome your review and look forward to your reply.

Sincerely,

Norm
#18 Posted: 9/20/2024 7:35:36 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi Norm. You can parametrize f(x) as {x(t)=t, y(t)=f(t)} and substitute in the formulas x'(t)=1, x''(t)=0, x(t) -> x and y(t) -> y(x).

curvatura3 - Cartesian.sm (40 KiB) downloaded 35 time(s).

Best regards.
Alvaro.
1 users liked this post
sergio 9/21/2024 6:01:00 PM
#19 Posted: 9/20/2024 11:00:58 PM
Norm Schutzkus

Norm Schutzkus

9 likes in 90 posts.

Group: User

Thanks Alvaro! As always, great examples to work with!

Sincerely,

Norm
  • New Posts New Posts
  • No New Posts No New Posts