Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support or alternative for steinmetz #732

Open
eclecticfluff opened this issue May 22, 2024 · 8 comments
Open

Add support or alternative for steinmetz #732

eclecticfluff opened this issue May 22, 2024 · 8 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@eclecticfluff
Copy link

I wish to be able to typeset polar complex numbers in the style given by the steinmetz package, but unfortunately complex-symbol-angle = \phase does not work. I would appreciate it if the internal code could be changed for this to work, or alternatively another key be added explicitly for wrapping the phase component of polar complex numbers in an arbitrary macro.
Ideally, a new function could be created within siunitx to match this style of typesetting, adding options to better match font and scale in a smarter way than blindly enclosing the bounding box. This would likely take considerably more effort to implement, however, so I understand if contributor motivation isn't there for it.

@josephwright
Copy link
Owner

I will see what Enrico thinks here

@eg9
Copy link

eg9 commented May 22, 2024

The steinmetz package was written in order to implement a representation of complex numbers that's common in engineering fields, so I guess it would be good to allow using it with siunitx.

I'm not sure, however, about how to integrate it with siunitx, because the single command \phase actually only typesets the measure of the angle.

@josephwright josephwright added the enhancement New feature or request label Jun 7, 2024
@josephwright josephwright added this to the v3.4 milestone Jun 7, 2024
@josephwright josephwright self-assigned this Jun 7, 2024
@josephwright
Copy link
Owner

Would you say Steinmetz notation is a form of polar output, or an entirely independent format? Working out where the right options live.

@Rmano
Copy link

Rmano commented Oct 3, 2024

I would say that, basically, that is a form of polar output, yes, with or without a unit. It's quite common to write "I = 30∠30° mA", or also "I = 30 ∠π/6 mA", etc. etc. It's a bit complex here, because you can have a quantity with two different units for the main value and for the angle... (although the angle is in degrees or radian, I never saw anything different).

@eg9
Copy link

eg9 commented Oct 3, 2024

@Rmano Would you please add a few printed examples?

@Rmano
Copy link

Rmano commented Oct 3, 2024

I'll try to see if I can find some. We use here quite extensively, but being my field electronics, not electricity, I tend not to use that notation... If I find something I'll post it here.

@Rmano
Copy link

Rmano commented Oct 4, 2024

I checked with an electric engineering / EMC expert here, and he sent me this (here the unit is p.u. which is a bit a no-unit..). He told me that he will try to check for papers with that notation, that seems "natural" to him...

image

From

image

@Rmano
Copy link

Rmano commented Oct 7, 2024

This is better

image

image

(Power System Analysis, by Hadi Saadat)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants